From 86750633ff7c5d8836b751148234ab94e132b0a5 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 10 Oct 2014 13:33:19 +0200 Subject: [PATCH] Use the same style for exception messages --- vncviewer/OSXPixelBuffer.cxx | 2 +- vncviewer/X11PixelBuffer.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vncviewer/OSXPixelBuffer.cxx b/vncviewer/OSXPixelBuffer.cxx index df82c86f..a3ee9d0d 100644 --- a/vncviewer/OSXPixelBuffer.cxx +++ b/vncviewer/OSXPixelBuffer.cxx @@ -47,7 +47,7 @@ OSXPixelBuffer::OSXPixelBuffer(int width, int height) : data = new rdr::U8[width * height * format.bpp/8]; if (data == NULL) - throw rfb::Exception(_("Error: Not enough memory for framebuffer")); + throw rfb::Exception(_("Not enough memory for framebuffer")); lut = CGColorSpaceCreateDeviceRGB(); assert(lut); diff --git a/vncviewer/X11PixelBuffer.cxx b/vncviewer/X11PixelBuffer.cxx index b729e800..d84357c4 100644 --- a/vncviewer/X11PixelBuffer.cxx +++ b/vncviewer/X11PixelBuffer.cxx @@ -57,7 +57,7 @@ static PixelFormat display_pf() if (format[i].depth == fl_visual->depth) break; if (i == nformats) - throw rfb::Exception(_("Error: display lacks pixmap format for default depth")); + throw rfb::Exception(_("Display lacks pixmap format for default depth")); switch (format[i].bits_per_pixel) { case 8: @@ -66,7 +66,7 @@ static PixelFormat display_pf() bpp = format[i].bits_per_pixel; break; default: - throw rfb::Exception(_("Error: couldn't find suitable pixmap format")); + throw rfb::Exception(_("Couldn't find suitable pixmap format")); } XFree(format); @@ -75,7 +75,7 @@ static PixelFormat display_pf() trueColour = (fl_visual->c_class == TrueColor); if (!trueColour) - throw rfb::Exception(_("Error: only true colour displays supported")); + throw rfb::Exception(_("Only true colour displays supported")); vlog.info(_("Using default colormap and visual, %sdepth %d."), (fl_visual->c_class == TrueColor) ? "TrueColor, " : -- 2.39.5