Extend error output of apps/opt_format() to all error cases