BREAKING CHANGE: Each plugin is expected to return an async function or a Promise returning function. The callback parameter is not passed to plugins anymore.
6 lines
116 B
JavaScript
6 lines
116 B
JavaScript
module.exports = () => {
|
|
const error = new Error('a');
|
|
error.errorProperty = 'errorProperty';
|
|
throw error;
|
|
};
|