add info to error message when expanding unknown variable types

This commit is contained in:
josh committed 2013-11-13 23:50:46 -05:00
1 parent d01913641f
commit 7249e57951
1 file changed
+1 -1
+1 -1
View File
@@ -72,7 +72,7 @@ module Rscons
elsif varval.is_a?(Array)
varval.map {|vv| expand_varref("#{prefix}#{vv}#{suffix}")}.flatten
else
raise "I do not know how to expand a variable reference to a #{varval.class.name}"
raise "I do not know how to expand a variable reference to a #{varval.class.name} (from #{varname.inspect} => #{@vars[varname].inspect})"
end
else
varref