mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Handle IOException in multipart more cleanly
This commit is contained in:
parent
f56b2962b0
commit
7774683247
|
@ -264,6 +264,10 @@ public final class DecodeServlet extends HttpServlet {
|
|||
log.info("File upload was too large or invalid");
|
||||
errorResponse(request, response, "badimage");
|
||||
return;
|
||||
} catch (IOException ioe) {
|
||||
log.info(ioe.toString());
|
||||
errorResponse(request, response, "badurl");
|
||||
return;
|
||||
}
|
||||
Part fileUploadPart = null;
|
||||
for (Part part : parts) {
|
||||
|
|
Loading…
Reference in a new issue