O'Reilly logo
  • Randy Gill thinks this is interesting:

if doing interactive processing, display the error message interactively and declare success if doing command line processing, log the error message to the command line and declare success

From

Cover of Code Complete, Second Edition

Note

Better to use template method, or strategy pattern