Skip to content

Commit d75c62a

Browse files
committed
throw error
1 parent f859536 commit d75c62a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const wreck = require('wreck');
55
const register = async (server, options) => {
66
options = options || {};
77
if (!options.method) {
8-
return Promise.reject(new Error('hapi-trailing-slash plugin registered without specifiying which method to use'));
8+
throw new Error('hapi-trailing-slash plugin registered without specifiying which method to use');
99
}
1010
options.statusCode = options.statusCode || 301;
1111

0 commit comments

Comments
 (0)