clean up RuntimeError message
(#618)