#135 Errors in the command line causes error mesage and zero exit status

_
open
nobody
None
1
2013-07-04
2013-07-04
No

If there are errors in the command line, NaturalDocs prints error message (that's right) and exits with status zero, which is wrong, because zero exit status means "success".

The problem is in Settings.pm:

1169      if (scalar @errorMessages)
1170          {
1171          print join("\n", @errorMessages) . "\nType NaturalDocs -h to see the syntax reference.\n";
1172          exit;
1173          };
1174      };

Line 1172 should be:

1172          exit 1;

Exit status may be any (unless it documented) but non-zero.

Patch is attached.

1 Attachments

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks