Skip to content

Commit

Permalink
Merge pull request #3800 from junaruga/hotfix/frozen-error-message
Browse files Browse the repository at this point in the history
Align frozen object's error message with MRI.
  • Loading branch information
brixen authored Jun 4, 2018
2 parents 477d83b + 91172ff commit 75086f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine/class/exception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ namespace rubinius {

Exception* Exception::make_frozen_exception(STATE, Object* obj) {
std::ostringstream msg;
msg << "can't modify frozen instance of ";
msg << "can't modify frozen ";
msg << obj->class_object(state)->module_name()->debug_str(state);

return Exception::make_exception(state, G(exc_rte), msg.str().c_str());
Expand Down

0 comments on commit 75086f2

Please sign in to comment.