diff --git a/src/error-with-context.ts b/src/error-with-context.ts index 4df17f6..956ef37 100644 --- a/src/error-with-context.ts +++ b/src/error-with-context.ts @@ -8,7 +8,7 @@ export class ErrorWithContext extends Error { error.message += ` - ${extraContext}`; } else { if (error == null) { - error = (extraContext as any) as string; + error = extraContext as any as string; } else { error += ` - ${extraContext}`; }