Skip to content

Commit

Permalink
Don't forget to exit when parameters are insufficient
Browse files Browse the repository at this point in the history
  • Loading branch information
lvsti committed Jan 13, 2018
1 parent 10225b9 commit b0efb42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Bridgecraft/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ if CommandLine.arguments.count < 3 {
print("Options:")
print(" --assume-nonnull Assumes that all headers have been audited for nullability")
print("\n")
exit(1)
}

let origProjectURL = URL(fileURLWithPath: CommandLine.arguments[1])
Expand Down Expand Up @@ -319,5 +320,5 @@ do {
catch {
// clean up
cleanUp(projectURL: projectURL, sourceURL: sourceURL, preprocessedURL: preprocessedURL)
exit(1)
exit(2)
}

0 comments on commit b0efb42

Please sign in to comment.