Explorar o código

amberc.js: call callback if closure.jar is found

Manfred Kroehnert %!s(int64=11) %!d(string=hai) anos
pai
achega
cc4e45cf16
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      bin/amberc.js

+ 4 - 2
bin/amberc.js

@@ -330,9 +330,11 @@ AmberC.prototype.check_for_closure_compiler = function(callback) {
 					defaults.closure = false;
 					defaults.closure_parts = false;
 					defaults.closure_full = false;
-					callback();
-					return;
+				} else {
+					console.warn('Closure compiler found at: ' + self.closure_jar);
 				}
+				callback();
+				return;
 			});
 		});
 	} else {