UNPKG

309 BPlain TextView Raw
1import { StrykerError } from '@stryker-mutator/util';
2import { InjectionError } from 'typed-inject';
3
4export class ConfigError extends StrykerError {}
5
6export function retrieveCause(error: unknown): unknown {
7 if (error instanceof InjectionError) {
8 return error.cause;
9 } else {
10 return error;
11 }
12}