0.1.17 (#18)
Co-authored-by: Julien Valverdé <julien.valverde@mailo.com> Reviewed-on: #18
This commit was merged in pull request #18.
This commit is contained in:
11
src/ImportError.ts
Normal file
11
src/ImportError.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Data } from "effect"
|
||||
|
||||
|
||||
export class ImportError extends Data.TaggedError("ImportError")<{
|
||||
path: string
|
||||
cause: unknown
|
||||
}> {
|
||||
toString(): string {
|
||||
return `Could not import '${ this.path }'`
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user