Skip to content

Commit

Permalink
When an exception is caught, return with a non-zero exit code
Browse files Browse the repository at this point in the history
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@430 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information
chmallon committed Nov 21, 2006
1 parent ca0503c commit 7445e92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions makeobj/makeobj.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ int main(int argc, char* argv[])
catch (obj_pak_exception_t* e) {
printf("ERROR IN CLASS %s: %s\n", (const char*)e->get_class(), (const char*)e->get_info());
delete e;
return 1;
}
return 0;
}
Expand Down Expand Up @@ -71,6 +72,7 @@ int main(int argc, char* argv[])
catch (obj_pak_exception_t* e) {
printf("ERROR IN CLASS %s: %s\n", (const char*)e->get_class(), (const char*)e->get_info());
delete e;
return 1;
}

// image_writer_t::dump_special_histogramm();
Expand Down Expand Up @@ -104,6 +106,7 @@ int main(int argc, char* argv[])
catch (obj_pak_exception_t* e) {
printf("ERROR IN CLASS %s: %s\n", (const char*)e->get_class(), (const char*)e->get_info());
delete e;
return 1;
}
return 0;
}
Expand Down

0 comments on commit 7445e92

Please sign in to comment.