Does IMG return error codes when you attempt to perform operations at
the commandline?

If so, where are they and how do I sue them?