Avoid translating simple error exceptions
These are very rare and very low level. Might as well just print
the offending call to keep things easily maintained.
diff --git a/vncviewer/X11PixelBuffer.cxx b/vncviewer/X11PixelBuffer.cxx
index ce5c4d8..a1d7687 100644
--- a/vncviewer/X11PixelBuffer.cxx
+++ b/vncviewer/X11PixelBuffer.cxx
@@ -110,11 +110,13 @@
xim = XCreateImage(fl_display, fl_visual->visual, fl_visual->depth,
ZPixmap, 0, 0, width, height, BitmapPad(fl_display), 0);
if (!xim)
- throw rfb::Exception(_("Could not create framebuffer image"));
+ throw rfb::Exception("XCreateImage");
xim->data = (char*)malloc(xim->bytes_per_line * xim->height);
if (!xim->data)
throw rfb::Exception(_("Not enough memory for framebuffer"));
+
+ vlog.debug("Using standard XImage");
}
data = (rdr::U8*)xim->data;