Skip to content

Commit

Permalink
fix: msgs were the wrong way around, my bad
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasgriffintn committed Jun 9, 2023
1 parent a165560 commit b76cb74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,9 @@ export class Consumer extends TypedEventEmitter {
return result instanceof Object ? result : message;
} catch (err) {
if (err instanceof TimeoutError) {
err.message = `Unexpected message handler failure: ${err.message}`;
} else if (err instanceof Error) {
err.message = `Message handler timed out after ${this.handleMessageTimeout}ms: Operation timed out.`;
} else if (err instanceof Error) {
err.message = `Unexpected message handler failure: ${err.message}`;
}
throw err;
} finally {
Expand Down

0 comments on commit b76cb74

Please sign in to comment.