Open jonpas opened 5 years ago
I removed some of the more general top-level error messages, but I think the error system needs an overhaul anyways. Rust has the tools to build a proper Error stack, which would be more useful when using armake as a library as well.
Example:
The
Failed to build PBO:
with the colon at the end is very confusing, as one expects to read the PBO name there. However that is a job of whatever is using/calling armake2. Same goes for further lines until the actual source.An idea would be to prepend those with a number, it's supposed to be kind of a stack trace if I understand the meaning of this form of error output, numbers like Rust's backtrace would be ideal. And obviously no colons in that case.
It's also self-explanatory that PBO failed to build if you have a red error which also tells you what what exactly failed (parsing, binarizing... etc.).