Skip to content

Commit

Permalink
added missing error
Browse files Browse the repository at this point in the history
  • Loading branch information
nedley committed Dec 12, 2019
1 parent 41f068b commit 207d3a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cook/Recipes/RegisterBundleId.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct RegisterBundleId: ExecutableRecipe {
return register()
} else {
logger.log(.error, "Failed to delete app id")
exit(EXIT_FAILURE)
return _abort(AppIdError.failedToDeleteAppId)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions cook/Recipes/UpdateProvisioningProfile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct UpdateProvisioningProfile: ExecutableRecipe {
}
} else {
logger.log(.error, "Failed to delete app id")
exit(EXIT_FAILURE)
return _abort(AppIdError.failedToDeleteAppId)
}
}
}
Expand All @@ -96,7 +96,7 @@ struct UpdateProvisioningProfile: ExecutableRecipe {
}
} else {
logger.log(.error, "App id with bundle identifier \(self.bundleId) does not exist!")
exit(EXIT_FAILURE)
return _abort(AppIdError.missingAppId)
}
}
}
Expand Down
1 change: 1 addition & 0 deletions cook/Stuff/Errors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ enum CertificateError: Error {

enum AppIdError: Error {
case missingAppId
case failedToDeleteAppId
}

enum DeviceError: Error {
Expand Down

0 comments on commit 207d3a2

Please sign in to comment.