Commit e174992a authored by Petri Hintukainen's avatar Petri Hintukainen

mobj_dump: print error message on read/parse failure

parent 86e68248
......@@ -73,11 +73,14 @@ int main(int argc, const char *argv[])
mobj = bd_read_mobj(argv[argc-1]);
if (mobj) {
_mobj_print(mobj, disasm);
if (!mobj) {
fprintf(stderr, "Error loading %s\n", argv[argc-1]);
return 1;
_mobj_print(mobj, disasm);
return 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment