Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[minor] Respond to error in commands/apps.js

  • Loading branch information...
commit 4ba9401c98667774529e50ec37d2ff99fddd9904 1 parent dddaf8b
@indexzero indexzero authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 lib/jitsu/commands/apps.js
View
10 lib/jitsu/commands/apps.js
@@ -164,8 +164,14 @@ apps.create = function (target, callback) {
pkg.name = name || pkg.name;
jitsu.apps.list(function (err, apps) {
- var username = jitsu.config.get('username');
- var existing = apps.filter(function (a) {
+ if (err) {
+ return callback(err);
+ }
+
+ var username = jitsu.config.get('username'),
+ existing;
+
+ existing = apps.filter(function (a) {
return a.name === pkg.name && a.user === username;
});
Please sign in to comment.
Something went wrong with that request. Please try again.