Skip to content

Commit b228099

Browse files
authored
Merge pull request #419 from jdbevan/more-logging-for-handler-resolution
Include directory when reporting missing handler
2 parents d542eb6 + 89936c8 commit b228099

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)