Skip to content

Commit

Permalink
doc: Add documentation for exit codes
Browse files Browse the repository at this point in the history
Fixes: #351
  • Loading branch information
Udayan12167 committed Apr 18, 2015
1 parent 8d4164b commit f85d57b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/Getting_Involved/Exit_Codes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Exit Codes

The following is a list of the exit codes and their meanings in the coala code:

* `0` - coala executed succesfully but yielded no results.
* `1` - coala executed succesfully but yielded results.
* `2` - Invalid arguments were passed to coala in the command line.
* `130` - A KeyboardInterrupt(Ctrl+C) was pressed during the execution of
coala.
* `255` - The file collector exits with this code if an invalid patter is
passed to it.

This comment has been minimized.

Copy link
@sils

sils Apr 18, 2015

Member

the user doesn't know what the file collector is, try to describe it from sight of the user. The glob pattern is invalid.

* `128` - Any other general errors.

This comment has been minimized.

Copy link
@sils

sils Apr 18, 2015

Member

128 is more special than 255, I'd switch the codes here

This comment has been minimized.

Copy link
@sils

sils Apr 18, 2015

Member

or rather a new proposal: have 255 for general errors and 3 for invalid glob pattern?

This comment has been minimized.

Copy link
@Udayan12167

Udayan12167 Apr 18, 2015

Author Contributor

That sounds good


This list will be updated regularly as and when new exit codes are added to
coala.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pages:
- ['Getting_Involved/Writing_Commit_Messages.md',
'Getting Involved',
'Writing Commit Messages']
- ['Getting_Involved/Exit_Codes.md', 'Getting Involved' ,'Exit Codes']
- ['Getting_Involved/MAC_Hints.md', 'Getting Involved', 'MAC Hints']
- ['General_Dev_Info/git_tutorial_1.md',
'General Developer Information',
Expand Down

1 comment on commit f85d57b

@sils
Copy link
Member

@sils sils commented on f85d57b Apr 18, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is something affecting the user yes? So it doesn't belong into getting involved because thats for people want to develop coala but it belongs to getting started or so.

Please sign in to comment.