Skip to content

Instantly share code, notes, and snippets.


Sam Quinn santiq

Block or report user

Report or block santiq

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
chonz0 /
Last active Dec 28, 2016
Emoji commits
Emoji Snippet Context
🎉 :tada: initial commit
:sparkles: new feature
:heavy_plus_sign: add feature
:heavy_minus_sign: remove feature
📦 :package: modify package dependencies
🌐 :globe_with_meridians: internationalization / translations
🔧 :wrench: tooling
🎨 :art: when improving the format/structure of the code
NaokiStark / content.js
Created Feb 24, 2016
fixed repeated buttons
View content.js
const serverURL = '';
getVotes= function(shoutId,cb){
return cb(res,status);
renderButtons = function(){
noahmiller / gulpfile-error-handling.js
Created May 15, 2014
Example error handling in a gulpfile
View gulpfile-error-handling.js
var gulp = require('gulp');
var gutil = require('gulp-util');
var jshint = require('gulp-jshint');
// Command line option:
// --fatal=[warning|error|off]
var fatalLevel = require('yargs').argv.fatal;
var ERROR_LEVELS = ['error', 'warning'];
floatdrop /
Last active Aug 31, 2019
Error management in gulp

#Error management in gulp

Sucking at something is the first step to becoming sorta good at something

No one can assure you, that plugins will run smooth in any circumstances (except for tests - they could), so neither should you convince anyone, that your plugin will never break. Only thing, that you could possibly do (if something gone wrong) - is gracefully inform your plugin user, that something went wrong and die.

We are will use this plugin from beginning to demonstrate error management. Suppose you have a task in gulpfile.js that contains this code (we modified it a little bit to be closer to real-usage):

var coffee = require('gulp-coffee');
You can’t perform that action at this time.