n370/screenshot-cmd

Exit status (exit code, errorlevel) not according to convention.

Closed this issue · 1 comments

The program's main routine ends with the following statement:

  return stat == Ok;

As a result, the program returns 1 on success and 0 on failure. This is not 
according to the common convention that a return value of 0 indicates 
successful termination. The shell (e.g. cmd.exe) relies on this convention, for 
example when chaining commands using &&.

Since its exit code is (currently) the program's only means to communicate a 
failure, it seems rather important that this is fixed.

Original issue reported on code.google.com by stephan...@gmail.com on 8 Jul 2010 at 12:33

fixed (r3)

Original comment by bwik...@gmail.com on 22 Apr 2011 at 8:22

  • Changed state: Fixed