handlebars-lang / handlebars-lang/handlebars.js

Clearer error message

Open
#1,450 1 comment 0 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
18.7k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

throw new _exception2['default']('The partial ' + options.name + ' could not be found');

please include double (or single quotes) around options.name in the error message to make it clearer that is the object that could not be found instead of a verb within the message.

Contributor guide

Open the contributing guide

Research direction

Search the repository for the exact throw statement shown in the issue and inspect the surrounding error-handling code. Update the message so options.name is visibly quoted, then verify that the resulting missing-partial error identifies the object name unambiguously.

Written by the indexing model from the issue text.

Assessment

Tech stack
handlebars, javascript
Domain
web-dev
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.