Browse Source

amberc.js: fix wrong variable references

Manfred Kroehnert 12 years ago
parent
commit
f588fa99c5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bin/amberc.js

+ 2 - 2
bin/amberc.js

@@ -409,11 +409,11 @@ AmberC.prototype.collect_st_files = function(stFiles, callback) {
 			if (exists) {
 				_callback(stFile, category);
 			} else {
-				path.exists(amberJsFile, function(exists) {
+				path.exists(amberStFile, function(exists) {
 					if (exists) {
 						_callback(amberStFile, category);
 					} else {
-						throw(new Error('JavaScript file not found: ' + jsFile));
+						throw(new Error('Smalltalk file not found: ' + amberStFile));
 					}
 				});
 			}