Skip to content

Commit 22168ac

Browse files
committed
Improve error message when file is not found in ResourceMapper
1 parent 665b84d commit 22168ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resource-mapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ResourceMapper {
6464
const match = files.find(f => this._removeDollarExtension(f) === filename ||
6565
(isIndex && f.startsWith(this._indexName + '.')))
6666
if (!match) {
67-
throw new Error('File not found')
67+
throw new Error(`File not found: ${fullPath}`)
6868
}
6969
path = `${folder}${match}`
7070
contentType = this._getContentTypeByExtension(match)

0 commit comments

Comments
 (0)