Skip to content

Commit

Permalink
fix: use NiceLogger in exitWithError
Browse files Browse the repository at this point in the history
Also just triggering the initial release.
  • Loading branch information
jeffijoe committed Aug 25, 2020
1 parent 8b1bfc6 commit 0a9714a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/InteractiveApproval.ts
Expand Up @@ -34,6 +34,9 @@ export interface InteractiveApprovalDriver {
onError(message: string): void
}

/**
* Prompt response.
*/
export interface PromptResponse {
/**
* Selected Pulls to approve.
Expand All @@ -59,6 +62,9 @@ export interface InteractiveApprovalResult {
failedPulls: Pull[]
}
export const InteractiveApprovalResult = {
/**
* Empty result.
*/
empty: {
approvedPulls: [],
failedPulls: [],
Expand Down
2 changes: 1 addition & 1 deletion src/cli/cli.ts
Expand Up @@ -121,6 +121,6 @@ function printHelp() {
* @param message
*/
function exitWithError(message: string): never {
console.error(message)
NiceLogger.error(message)
process.exit(1)
}

0 comments on commit 0a9714a

Please sign in to comment.