Files
thilalib/src/ImportError.ts
Julien Valverdé 02d8e38f4d
All checks were successful
Publish / publish (push) Successful in 13s
Lint / lint (push) Successful in 11s
0.1.17 (#18)
Co-authored-by: Julien Valverdé <julien.valverde@mailo.com>
Reviewed-on: #18
2024-09-07 20:56:30 +02:00

12 lines
227 B
TypeScript

import { Data } from "effect"
export class ImportError extends Data.TaggedError("ImportError")<{
path: string
cause: unknown
}> {
toString(): string {
return `Could not import '${ this.path }'`
}
}