(error: unknown, augmentation: string)
| 1 | export default function augmentError(error: unknown, augmentation: string) { |
| 2 | if (error instanceof Error) { |
| 3 | error.message = `${error.message}, ${augmentation}` |
| 4 | } else { |
| 5 | error = `${error}, ${augmentation}` |
| 6 | } |
| 7 | return error |
| 8 | } |
no outgoing calls
no test coverage detected