Skip to content

Commit

Permalink
MAIN: Don't return with a negative value from main
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Nov 1, 2016
1 parent 03a326b commit 72620ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/phaethon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ int main(int argc, char **argv) {
case kOperationInvalid:
default:
std::printf("%s\n", createHelpText(args[0]).c_str());
return -1;
return 1;
}
} catch (Common::Exception &e) {
Common::printException(e);
return -2;
return 2;
} catch (std::exception &e) {
Common::Exception se(e);

Common::printException(se);
return -2;
return 2;
}

return 0;
Expand Down

0 comments on commit 72620ac

Please sign in to comment.