瀏覽代碼

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

Manfred Kroehnert 11 年之前
父節點
當前提交
cc4e45cf16
共有 1 個文件被更改,包括 4 次插入2 次删除
  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 {