Skip to content

Commit

Permalink
Updated module error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
NotTimTam committed Sep 13, 2024
1 parent 9a15213 commit a8a95d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nottimtam/file-converter",
"version": "1.2.9",
"version": "1.2.10",
"description": "A headless, self-hostable, open-source file conversion express middleware.",
"main": "index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion util/Module.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default class Module {
!customReturn)
)
throw new SyntaxError(
`(${label}) Invalid 'from' value provided to Module constructor config. Expected a valid MIME type, file extension, or array of those values.`
`Invalid mimetype provided to Module constructor config.from array. Expected a valid MIME type, or file extension, but got: "${label}".`
);
}
else if (
Expand Down

0 comments on commit a8a95d1

Please sign in to comment.