Skip to content

Commit

Permalink
chore: provided error time should be a TimeoutError
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasgriffintn committed Aug 9, 2023
1 parent 81a7b5c commit 020d9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function toStandardError(err: Error, message: string): StandardError {
* @param err The error object that was received.
* @param message The message to send with the error.
*/
function toTimeoutError(err: Error, message: string): TimeoutError {
function toTimeoutError(err: TimeoutError, message: string): TimeoutError {
const error = new TimeoutError(message);
error.cause = err;
error.time = new Date();
Expand Down

0 comments on commit 020d9d1

Please sign in to comment.