I'm aware of at least 2 occ commands which print a "success" message even if the operation fails, the one which writes the htaccess and the one which signs apps.
This should be fixed as it's very confusing to users.
Is this a global occ issue or should it be handled on a case by case basis?
Maybe it's a combination of both, some global catcher and making sure each command exits with the proper code.
@LukasReschke: your commands 馃槤