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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ public class DefaultUWSErrorWriter implements ServiceErrorWriter {

	@Override
	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;

		// Just format and write the error message: