Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

beep on errors. #7

Merged
merged 1 commit into from

2 participants

@surfac

No description provided.

@edwardhotchkiss edwardhotchkiss merged commit c837ad4 into from
@edwardhotchkiss

Awesome! Let me publish, please hold.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 29, 2012
  1. @surfac

    beep on errors.

    surfac authored
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 0 deletions.
  1. +10 −0 bin/always.js
View
10 bin/always.js
@@ -20,6 +20,7 @@ var fs = require('fs')
, file = null
, app = null
, cleaned
+ , beep = false
, version = 'v1.1.1';
/**
@@ -53,6 +54,12 @@ if (args.length === 2) {
initializeDevelopment();
break;
}
+
+ if(args[3] == 'beep'){
+ beep = true;
+ }
+
+
};
/**
@@ -135,6 +142,9 @@ function appLogger(str, isError){
var nice = '['+file+']';
if (isError) {
console.log(nice.cyan+' '+str.red);
+ if(beep){
+ console.log('\u0007');
+ }
} else {
console.log(nice.cyan+' '+str);
}
Something went wrong with that request. Please try again.