Skip to content

Commit

Permalink
Update consumer.ts (#235)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Solomon <[email protected]>
  • Loading branch information
mikicho and Michael Solomon authored Aug 20, 2021
1 parent 7efbc26 commit 663f222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export class Consumer extends EventEmitter {
} catch (err) {
if (err instanceof TimeoutError) {
err.message = `Message handler timed out after ${this.handleMessageTimeout}ms: Operation timed out.`;
} else {
} else if (err instanceof Error) {
err.message = `Unexpected message handler failure: ${err.message}`;
}
throw err;
Expand Down

0 comments on commit 663f222

Please sign in to comment.