Skip to content

Commit e03028e

Browse files
author
Timofey Dergachev
committed
Add error handling
1 parent 954e5bc commit e03028e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ module.exports = function(plugins, options) {
2222
.then(function(result) {
2323
chunk.contents = new Buffer(result.html);
2424
cb(null, chunk);
25+
}).catch(function(err) {
26+
cb(new PluginError(PLUGIN_NAME, err));
2527
});
2628
});
2729
};

0 commit comments

Comments
 (0)