Skip to content

Commit 65a6fdf

Browse files
committed
Merge pull request #1 from exeto/patch-1
Add error handling
2 parents 954e5bc + e03028e commit 65a6fdf

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)