return compiler, not generated mom

does make the tests more verbose, but the code cleaner
This commit is contained in:
Torsten Ruger
2018-07-01 11:57:17 +03:00
parent f7dfa1c45e
commit 1a97408e22
3 changed files with 4 additions and 9 deletions

View File

@ -23,7 +23,7 @@ module Risc
when "Interpreter"
return Risc::InterpreterPlatform.new
else
raise "not recignized platform #{name}"
raise "not recognized platform #{name.class}:#{name}"
end
end
end