Is it possible to create a global OnError function that I can pass a title and the error message to?
I'm looking to do something like this for all tasks ran with plumber:
onError = function(error) {
$.notify.onError({
title: 'Error',
subtitle: '<%= file.relative %> did not compile!',
message: '<%= error.message %>'
})(error);
};