Skip to content

Commit b0f8ea4

Browse files
committed
Simplify error message for missing template file
1 parent 8c98675 commit b0f8ea4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/transform.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ function transformPath(componentPath, options) {
1414
let templatePaths = possibleTemplatePaths(componentPath);
1515
let templatePath = templatePaths.find(fs.existsSync);
1616
if (!templatePath) {
17-
let where = templatePaths.join(' or ');
18-
throw new SilentError(`Could not find template at ${where}`);
17+
throw new SilentError('Could not find corresponding template file');
1918
}
2019
debug('templatePath: %o', templatePath);
2120

0 commit comments

Comments
 (0)