Skip to content

Commit

Permalink
simply added double quote to partial not found error message
Browse files Browse the repository at this point in the history
Signed-off-by: Seyed Mohammad Mahdi Hatami <[email protected]>
  • Loading branch information
smmhatami committed Jun 28, 2023
1 parent b4a54ad commit 9850973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/handlebars/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export function invokePartial(partial, context, options) {
}

if (partial === undefined) {
throw new Exception('The partial ' + options.name + ' could not be found');
throw new Exception('The partial \"' + options.name + '\" could not be found');

Check failure on line 379 in lib/handlebars/runtime.js

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \"

Check failure on line 379 in lib/handlebars/runtime.js

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \"
} else if (partial instanceof Function) {
return partial(context, options);
}
Expand Down

0 comments on commit 9850973

Please sign in to comment.