Ver código fonte

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

Manfred Kroehnert 11 anos atrás
pai
commit
cc4e45cf16
1 arquivos alterados com 4 adições e 2 exclusões
  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 {