Skip to content

Commit

Permalink
make SpeechCredentialError subclass of NonFatalTask error
Browse files Browse the repository at this point in the history
  • Loading branch information
sammachin committed Dec 2, 2024
1 parent e3d40d9 commit 5b91733
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/utils/error.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
class SpeechCredentialError extends Error {
class NonFatalTaskError extends Error {
constructor(msg) {
super(msg);
}
}

class NonFatalTaskError extends Error {
class SpeechCredentialError extends NonFatalTaskError {
constructor(msg) {
super(msg);
}
}



Check failure on line 14 in lib/utils/error.js

View workflow job for this annotation

GitHub Actions / build

More than 2 blank lines not allowed
module.exports = {
SpeechCredentialError,
NonFatalTaskError
Expand Down

0 comments on commit 5b91733

Please sign in to comment.