(code: SystemError)
| 60 | } |
| 61 | |
| 62 | export function getSystemErrorMessage(code: SystemError): string { |
| 63 | if (process.env['NODE_ENV'] !== 'production') { |
| 64 | return (systemErrorMessages as Record<SystemError, string>)[code]; |
| 65 | } |
| 66 | |
| 67 | return 'Error message not available in production bundles.'; |
| 68 | } |
| 69 | |
| 70 | export function isSystemError<TProgramErrorCode extends SystemError>( |
| 71 | error: unknown, |
nothing calls this directly
no outgoing calls
no test coverage detected