call traceback is indecipherable garbage
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Jan 26 04:25:47 UTC 2022
On Wed, Jan 26, 2022 at 03:51:55AM +0000, forkit via Digitalmars-d wrote:
[...]
> Still, it makes complete sense to me, that a stack trace dump is
> 'debugging material', and that -release should print only the
> exeption, and nothing else.
It's easy, just wrap your main() in a try-catch block:
int main() {
try {
// ... rest of code goes here
return 0;
} catch(Exception e) {
writeln("Error: %s", e.msg);
return 1;
}
}
T
--
Your inconsistency is the only consistent thing about you! -- KD
More information about the Digitalmars-d
mailing list