Skip to content

Commit 89936c8

Browse files
committed
Include directory when reporting missing handler
This helped me debug a problem with using the context option in my webpack configuration.
1 parent d542eb6 commit 89936c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = {
3838

3939
if (_.isEmpty(files)) {
4040
// If we cannot find any handler we should terminate with an error
41-
throw new this.serverless.classes.Error(`No matching handler found for '${fileName}'. Check your service definition.`);
41+
throw new this.serverless.classes.Error(`No matching handler found for '${fileName}' in '${this.serverless.config.servicePath}'. Check your service definition.`);
4242
}
4343

4444
// Move preferred file extensions to the beginning

0 commit comments

Comments
 (0)