We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f859536 commit d75c62aCopy full SHA for d75c62a
index.js
@@ -5,7 +5,7 @@ const wreck = require('wreck');
5
const register = async (server, options) => {
6
options = options || {};
7
if (!options.method) {
8
- return Promise.reject(new Error('hapi-trailing-slash plugin registered without specifiying which method to use'));
+ throw new Error('hapi-trailing-slash plugin registered without specifiying which method to use');
9
}
10
options.statusCode = options.statusCode || 301;
11
0 commit comments