Skip to content

Commit

Permalink
Fix up the exit status for description fetch failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvl committed May 21, 2020
1 parent a2c66a4 commit 146a8b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Tools/GenerateCheckedInServices
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This script does work currently needed to regenerate the sources found
# in Source/GeneratedServices.

set -e
set -eu

# Where does this script live so we can hit things in the tree.
readonly ToolsDir=$(dirname "$(echo $0 | sed -e "s,^\([^/]\),$(pwd)/\1,")")
Expand Down
2 changes: 1 addition & 1 deletion Source/Tools/ServiceGenerator/SGMain.m
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ - (instancetype)initWithArgc:(int)argc argv:(char * const *)argv {
}

- (int)run {

while (self.state != SGMain_Done) {
@autoreleasepool {
switch (self.state) {
Expand Down Expand Up @@ -685,6 +684,7 @@ - (BOOL)collectAPIFromURL:(NSURL *)url
if (parseErr) {
[self reportError:@"(reply was JSON, but it failed to parse: %@)", parseErr];
}
self.status = 14;
self.state = SGMain_Done;
return;
}
Expand Down

0 comments on commit 146a8b6

Please sign in to comment.