mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
init
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* @title Error Handler
|
||||
*/
|
||||
|
||||
import notifier from "node-notifier";
|
||||
|
||||
function errorHandler(error) {
|
||||
notifier.notify({
|
||||
title: 'Gulp Error',
|
||||
message: error.message,
|
||||
timeout: 3
|
||||
});
|
||||
console.error('\x1b[31m', error.message ,'\x1b[0m');
|
||||
this.emit('end');
|
||||
}
|
||||
|
||||
export default errorHandler;
|
||||
Reference in New Issue
Block a user