Pārlūkot izejas kodu

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

Manfred Kroehnert 11 gadi atpakaļ
vecāks
revīzija
cc4e45cf16
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  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 {