}
} catch (\Exception $e) {
$this->error("%s\n", $e->getMessage());
- exit(2);
+ exit(self::EARGS);
}
try {
if (!$this->args["quiet"]) {
$this->help($prog);
}
- exit(1);
+ exit(self::EARGS);
}
$this->createPackage();
"type" => $this->args->zend ? "zend_extension" : "extension",
]);
$file = (new Task\PharBuild($this->source, $meta))->run();
+ } catch (\Exception $e) {
+ $this->error("%s\n", $e->getMessage());
+ exit(self::EBUILD);
+ }
+ try {
if ($this->args->sign) {
$this->info("Using private key to sign phar ...\n");
$pass = (new Task\Askpass)->run($this->args->verbose);
} catch (\Exception $e) {
$this->error("%s\n", $e->getMessage());
- exit(4);
+ exit(self::ESIGN);
}
if ($this->args->gzip) {
} catch (\Exception $e) {
$this->error("%s\n", $e->getMessage());
- exit(4);
+ exit(self::EBUILD);
}
}
}