mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 22:47:52 +00:00
18 lines
320 B
JavaScript
Executable File
18 lines
320 B
JavaScript
Executable File
/*
|
|
* @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;
|