diff options
Diffstat (limited to 'lib/cli.php')
-rw-r--r-- | lib/cli.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/cli.php b/lib/cli.php index 3bda20f..a860871 100644 --- a/lib/cli.php +++ b/lib/cli.php @@ -63,8 +63,12 @@ class cli { } public static function die($error): void { - fwrite(STDERR, "error: {$error}\n"); + self::error($error); exit(1); } + public static function error($error): void { + fwrite(STDERR, "error: {$error}\n"); + } + }
\ No newline at end of file |