Skip to content

Commit

Permalink
Improve error msg when no deploy targets found. (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenzlong authored Jun 26, 2017
1 parent bc6c005 commit 69ce43d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/filterTargets.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ module.exports = function(options, validTargets) {
}

if (targets.length === 0) {
throw new FirebaseError('No targets found. Valid targets are: ' + validTargets.join(','), {exit: 1});
throw new FirebaseError('Cannot understand what targets to deploy. Check that you specified valid targets' +
' if you used the --only or --except flag. Otherwise, check your firebase.json to' +
' ensure that your project is initialized for the desired features.', {exit: 1});
}
return targets;
};

0 comments on commit 69ce43d

Please sign in to comment.