diff --git a/include/mapnik/cairo_context.hpp b/include/mapnik/cairo_context.hpp index 16a55e617..369edaf94 100644 --- a/include/mapnik/cairo_context.hpp +++ b/include/mapnik/cairo_context.hpp @@ -59,7 +59,7 @@ typedef cairo_status_t ErrorStatus; /// Throws the appropriate exception, if exceptions are enabled. inline void throw_exception(ErrorStatus status) { - throw std::runtime_error("cairo: fixme"); + throw std::runtime_error(std::string("cairo: ") + cairo_status_to_string(status)); } //We inline this because it is called so often. @@ -70,7 +70,7 @@ inline void check_status_and_throw_exception(ErrorStatus status) } template -void check_object_status_and_throw_exception(const T& object) +void check_object_status_and_throw_exception(T const& object) { check_status_and_throw_exception(object.get_status()); }