In your main(), catch this Fail exception, then output Fail.msg and return an error code.
int main() { try { // Your code here } catch(Fail e) { writeln("mytool: ERROR: ", e.msg); return 1; }
return 0; }
See Implementation
In your main(), catch this Fail exception, then output Fail.msg and return an error code.