Have the same error message for file not found

This commit is contained in:
Andras Schmelczer 2025-11-22 20:19:13 +00:00
commit 51baa4d8e0
2 changed files with 8 additions and 3 deletions

View file

@ -1,5 +1,8 @@
export class FileNotFoundError extends Error {
public constructor(message: string) {
public constructor(
message: string,
public readonly filePath: string
) {
super(message);
this.name = "FileNotFoundError";
}