comparison Core/Images/JpegReader.cpp @ 2085:5d4743fd8a85

fix log
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Sep 2016 17:08:15 +0200
parents 08ce34cfacad
children aa4b8895cd23
comparison
equal deleted inserted replaced
2084:20a001ea4aa2 2085:5d4743fd8a85
110 110
111 if (setjmp(jerr.GetJumpBuffer())) 111 if (setjmp(jerr.GetJumpBuffer()))
112 { 112 {
113 jpeg_destroy_decompress(&cinfo); 113 jpeg_destroy_decompress(&cinfo);
114 fclose(fp); 114 fclose(fp);
115 LOG(ERROR) << "Error during JPEG encoding: " << jerr.GetMessage(); 115 LOG(ERROR) << "Error during JPEG decoding: " << jerr.GetMessage();
116 throw OrthancException(ErrorCode_InternalError); 116 throw OrthancException(ErrorCode_InternalError);
117 } 117 }
118 118
119 // Below this line, we are under the scope of a "setjmp" 119 // Below this line, we are under the scope of a "setjmp"
120 120
147 cinfo.err = jerr.GetPublic(); 147 cinfo.err = jerr.GetPublic();
148 148
149 if (setjmp(jerr.GetJumpBuffer())) 149 if (setjmp(jerr.GetJumpBuffer()))
150 { 150 {
151 jpeg_destroy_decompress(&cinfo); 151 jpeg_destroy_decompress(&cinfo);
152 LOG(ERROR) << "Error during JPEG encoding: " << jerr.GetMessage(); 152 LOG(ERROR) << "Error during JPEG decoding: " << jerr.GetMessage();
153 throw OrthancException(ErrorCode_InternalError); 153 throw OrthancException(ErrorCode_InternalError);
154 } 154 }
155 155
156 // Below this line, we are under the scope of a "setjmp" 156 // Below this line, we are under the scope of a "setjmp"
157 jpeg_create_decompress(&cinfo); 157 jpeg_create_decompress(&cinfo);