Skip to content

Commit

Permalink
syntax: formatting change for ExitHandlers.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tegefaulkes committed Sep 21, 2022
1 parent b29ba9e commit 2c04717
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bin/utils/ExitHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class ExitHandlers {
public handlers: Array<(signal?: NodeJS.Signals) => Promise<void>>;
protected _exiting: boolean = false;
protected _errFormat: 'json' | 'error';

/**
* Handles termination signals
* This is idempotent
Expand Down Expand Up @@ -52,6 +53,7 @@ class ExitHandlers {
process.kill(process.pid, signal);
}
};

/**
* Handles asynchronous exceptions
* This prints out appropriate error message on STDERR
Expand All @@ -75,6 +77,7 @@ class ExitHandlers {
// Fail fast pattern
process.exit();
};

/**
* Handles synchronous exceptions
* This prints out appropriate error message on STDERR
Expand Down

0 comments on commit 2c04717

Please sign in to comment.