core.rb: Improve error message