Skip to content

Commit 4cc259a

Browse files
committed
fix: add file name when file does not exist
1 parent ae3b975 commit 4cc259a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@secjs/utils",
3-
"version": "1.5.7",
3+
"version": "1.5.8",
44
"description": "",
55
"license": "MIT",
66
"author": "João Lenon",

src/Classes/File.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class File {
9595

9696
if (!this._originalFileExists && !this._content)
9797
throw new InternalServerException(
98-
'File does not exist, please provide a content as second parameter in File constructor',
98+
`File ${this._originalBase} does not exist, please provide a content as second parameter in File constructor to create the file`,
9999
)
100100
}
101101

0 commit comments

Comments
 (0)