fix log only errors

This commit is contained in:
Fede Ramirez
2015-03-23 05:26:04 -03:00
parent d9d4471678
commit 6b0ae259b3
+2 -1
View File
@@ -40,7 +40,8 @@ program
*/
var error = function(msg){
log.error(msg);
if(!program.onlyErrors)
log.error(msg);
if(Array.isArray(msg)) {
error.summary.concat(msg);