core.rb: Improve error message
Merge pull request #24 from RichiH/patch-5

core.rb: Improve error message