die function

void die(
  1. String message
)

Print an error message to STDERR and exit with exit code 1.

Implementation

void die(String message) {
  stderr.write('$message\n');
  exit(1);
}