- fprint(std::cerr, "Base must be an integer in the range from 2 to 36, not ");
- fprint(std::cerr, base);
- fprint(std::cerr, "\n");
- cl_abort();
+ std::ostringstream buf;
+ fprint(buf, "Base must be an integer in the range from 2 to 36, not ");
+ fprint(buf, base);
+ throw runtime_exception(buf.str());