diff options
Diffstat (limited to 'packages/taler-util/src/errors.ts')
-rw-r--r-- | packages/taler-util/src/errors.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/taler-util/src/errors.ts b/packages/taler-util/src/errors.ts index cb61a5994..cbf4263fc 100644 --- a/packages/taler-util/src/errors.ts +++ b/packages/taler-util/src/errors.ts @@ -280,3 +280,7 @@ export function getErrorDetailFromException(e: any): TalerErrorDetail { ); return err; } + +export function assertUnreachable(x: never): never { + throw new Error("Didn't expect to get here"); +} |