Skip to content
Snippets Groups Projects
Commit 5640573c authored by gmantele's avatar gmantele
Browse files

[UWS] Fix important bug: errors were never displayed because of a wrong and stupid test.

parent e6a9d52f
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,7 @@ public class DefaultUWSErrorWriter implements ServiceErrorWriter { ...@@ -110,7 +110,7 @@ public class DefaultUWSErrorWriter implements ServiceErrorWriter {
@Override @Override
public void writeError(String message, ErrorType type, int httpErrorCode, HttpServletResponse response, HttpServletRequest request, String reqID, JobOwner user, String action) throws IOException{ public void writeError(String message, ErrorType type, int httpErrorCode, HttpServletResponse response, HttpServletRequest request, String reqID, JobOwner user, String action) throws IOException{
if (message != null || response != null) if (message == null || response == null)
return; return;
// Just format and write the error message: // Just format and write the error message:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment