Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Commit

Permalink
output errors to console
Browse files Browse the repository at this point in the history
  • Loading branch information
kessler committed Jul 25, 2013
1 parent 7653024 commit 08063b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services.js
Expand Up @@ -79,7 +79,7 @@ function initDatastoreConnection(config, context) {

Datastore.create(dbconfig, function(err, datastore) {

if (err) {
if (err) {
return callback(err);
} else {
context.r = context.redshift = {};
Expand Down
6 changes: 6 additions & 0 deletions redshift-cli.js
Expand Up @@ -35,6 +35,12 @@ var context = replServer.context;
logger.info('please wait...');

services.init(config, context, function(err, results) {
if (err) {
logger.error(err);
process.exit(1);
return;
}

logger.info('ready\n\r');

//require('fs').writeFileSync('zzz', $u.inspect(context))
Expand Down

0 comments on commit 08063b5

Please sign in to comment.