Permalink
Browse files

Split building exception message to more readable parts

  • Loading branch information...
Michal Bugno
Michal Bugno committed Apr 13, 2012
1 parent 368ba2f commit 0441d8b04f3e18ca15b289e62faaab6367503643
Showing with 3 additions and 1 deletion.
  1. +3 −1 vm/builtin/string.cpp
View
@@ -1022,7 +1022,9 @@ namespace rubinius {
} else {
std::stringstream ss;
if (isprint(chr) && isprint(max)) {
- ss << "invalid range \"" << (char)chr << "-" << (char)max << "\" in string transliteration";
+ ss << "invalid range \"";
+ ss << (char)chr << "-" << (char)max;
+ ss << "\" in string transliteration";
} else {
ss << "invalid range in string transliteration";
}

0 comments on commit 0441d8b

Please sign in to comment.