Permalink
Browse files

Fixed: dont exit(). Closes #9

  • Loading branch information...
1 parent 1a0ae90 commit 01463404b79fa7a3a24ecf35855e8f2e71757e47 @tj committed Dec 28, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/growl.js
View
@@ -49,10 +49,6 @@ switch(os.type()) {
]
}
};
- break;
- default:
- console.error('✗ node-growl only supports Darwin and Linux users');
- process.exit(1);
}
/**
@@ -103,6 +99,9 @@ function growl(msg, options, fn) {
, options = options || {}
, fn = fn || function(){};
+ // noop
+ if (!cmd) return fn(new Error('growl not supported on this platform'));
+
// image
if (image = options.image) {
switch(cmd.type) {

0 comments on commit 0146340

Please sign in to comment.