فهرست منبع

corrected wrong merge

Florian DORMONT 11 سال پیش
والد
کامیت
12799445f5
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      app/OmnomIRC.js

+ 6 - 1
app/OmnomIRC.js

@@ -25,6 +25,7 @@ var fs = require('fs'),
 		}
 		return defaults;
 	})();
+if(typeof fs.existsSync == 'undefined') fs.existsSync = path.existsSync; // legacy support
 if(cluster.isMaster){
 	for(var i=0;i<require('os').cpus().length;i++){
 		cluster.fork();
@@ -265,5 +266,9 @@ if(cluster.isMaster){
 	});
 }
 process.on('uncaughtException',function(e){
-	logger.error(e);
+	if(typeof logger != 'undefined'){
+		logger.error(e);
+	}else{
+		console.error(e);
+	}
 });