2016-01-23 12:26:56 -05:00
|
|
|
/*
|
|
|
|
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
|
|
|
* http://paperjs.org/
|
|
|
|
*
|
2020-05-23 16:24:42 -04:00
|
|
|
* Copyright (c) 2011 - 2020, Jürg Lehni & Jonathan Puckey
|
|
|
|
* http://juerglehni.com/ & https://puckey.studio/
|
2016-01-23 12:26:56 -05:00
|
|
|
*
|
|
|
|
* Distributed under the MIT license. See LICENSE file for details.
|
|
|
|
*
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
var gulp = require('gulp'),
|
|
|
|
gutil = require('gulp-util'),
|
|
|
|
ERROR = gutil.colors.red('[ERROR]');
|
|
|
|
|
|
|
|
gulp.on('error', function(err) {
|
|
|
|
var msg = err.toString();
|
|
|
|
if (msg === '[object Object]')
|
|
|
|
msg = err;
|
|
|
|
if (err.stack)
|
2016-01-28 08:39:40 -05:00
|
|
|
msg += err.stack;
|
|
|
|
msg.split(/\r\n|\n|\r/mg).forEach(function(line) {
|
|
|
|
gutil.log(ERROR, line);
|
|
|
|
});
|
2016-01-23 12:26:56 -05:00
|
|
|
this.emit('end');
|
|
|
|
});
|