Permalink
Browse files

log errors

  • Loading branch information...
1 parent 1944ef8 commit 32232c90259b17e817fc9bbc842d3a0b85fef257 @joeferner joeferner committed Dec 13, 2011
Showing with 6 additions and 4 deletions.
  1. +4 −2 lib/cli.js
  2. +1 −1 lib/driver/sqlite3.js
  3. +1 −1 test/database.json
View
@@ -85,7 +85,8 @@ function doUp(db, dbResults, files, options) {
});
}
});
- db.on('error', function() {
+ db.on('error', function(err) {
+ console.error(err);
errorCount++;
});
@@ -134,7 +135,8 @@ function doDown(db, dbResults, options) {
});
}
});
- db.on('error', function() {
+ db.on('error', function(err) {
+ console.error(err);
errorCount++;
});
View
@@ -83,7 +83,7 @@ Driver.prototype.createMigrationsTable = function(callback) {
Driver.prototype.createTable = function(tableName, columnSpecs, callback) {
var columnDefs = [];
for (var columnName in columnSpecs) {
- columnDefs.push(createColumnDef(columnName, columnSpecs[columnName]));
+ columnDefs.push(createColumnDef(columnName, columnSpecs[columnName]));
}
var sql = util.format('CREATE TABLE %s (%s)', tableName, columnDefs.join(', '));
this._runSql(sql, callback);
View
@@ -1,5 +1,5 @@
{
- "development": {
+ "dev": {
"driver": "sqlite3",
"filename": ":memory:"
},

0 comments on commit 32232c9

Please sign in to comment.