Redirect users to GitHub and Gitter in case of errors

Users will ge a better experience by knowing exactly where to go for
help if things go wrong.
This commit is contained in:
Juan Cruz Viotti 2016-01-12 08:31:40 -04:00
parent 11c0d2a847
commit 70ea8dd1a3
2 changed files with 10 additions and 1 deletions

View File

@ -134,7 +134,8 @@ limitations under the License.
};
exports.printErrorMessage = function(message) {
return console.error(chalk.red(message));
console.error(chalk.red(message));
return console.error(chalk.red('\nIf you need help, don\'t hesitate in contacting us at:\n\n GitHub: https://github.com/resin-io/resin-cli/issues/new\n Gitter: https://gitter.im/resin-io/chat\n'));
};
}).call(this);

View File

@ -105,3 +105,11 @@ exports.awaitDevice = (uuid) ->
exports.printErrorMessage = (message) ->
console.error(chalk.red(message))
console.error chalk.red '''
If you need help, don't hesitate in contacting us at:
GitHub: https://github.com/resin-io/resin-cli/issues/new
Gitter: https://gitter.im/resin-io/chat
'''