Permalink
Browse files

oracle connectin error fixed

  • Loading branch information...
iamdenny committed Dec 21, 2012
1 parent be15d56 commit 272dfb592432fd184b7c6367da0d0094e5d13889
Showing with 3 additions and 2 deletions.
  1. +2 −1 lib/Migrator.js
  2. +1 −1 package.json
View
@@ -72,7 +72,7 @@ Migrator.prototype = {
"database" : this._htOracle.sDatabase
}, function(err, connection) {
if(err){
- new Error(err);
+ throw new Error(err);
self._bIsOracleConnected = false;
}else{
self._oOracle = connection;
@@ -111,6 +111,7 @@ Migrator.prototype = {
this._oMysql.on('error', gDomain.bind(function(oErr){
console.error('error event in _connectToMysql, Migrator.js');
+ self.emit('error', err);
self._bIsMysqlConnected = false;
self._oMysql.end();
self._connectToMysql();
View
@@ -1,6 +1,6 @@
{
"name": "migrate-oracle-to-mysql"
- , "version": "0.1.1"
+ , "version": "0.1.2"
, "sescripton" : "Migrate oracle to mysql"
, "keywords" : ["migrate","oracle","mysql","convert"]
, "homepage" : "https://github.com/iamdenny/migrate-oracle-to-mysql"

0 comments on commit 272dfb5

Please sign in to comment.