Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
add type to Error
Browse files Browse the repository at this point in the history
Co-authored-by: Jeff Smale <6363749+jeffsmale90@users.noreply.github.com>
  • Loading branch information
davidmurdoch and jeffsmale90 committed Dec 21, 2022
1 parent fa98998 commit eadd8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/core/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export class Server<
`listen EADDRINUSE: address already in use ${
host || DEFAULT_HOST
}:${portNumber}.`
) as any;
) as NodeJS.ErrnoException;
// emulate part of node's EADDRINUSE error:
err.code = "EADDRINUSE";
throw err;
Expand Down

0 comments on commit eadd8ab

Please sign in to comment.