Index: gdk-pixbuf/io-jpeg.c
===================================================================
--- gdk-pixbuf/io-jpeg.c	(revision 17911)
+++ gdk-pixbuf/io-jpeg.c	(working copy)
@@ -692,6 +692,7 @@ gdk_pixbuf__jpeg_image_stop_load (gpoint
 		g_object_unref (context->pixbuf);
 	
 	/* if we have an error? */
+        context->jerr.error = error;
 	if (sigsetjmp (context->jerr.setjmp_buffer, 1)) {
                 retval = FALSE;
 	} else {
