Improved error reporting.
This commit is contained in:
parent
d9c8f89741
commit
2e13208758
|
@ -793,9 +793,16 @@ public class HttpInput extends ServletInputStream implements Runnable
|
||||||
synchronized (_inputQ)
|
synchronized (_inputQ)
|
||||||
{
|
{
|
||||||
if (_state instanceof ErrorState)
|
if (_state instanceof ErrorState)
|
||||||
LOG.warn(x);
|
{
|
||||||
|
Throwable failure = new Throwable(_state.getError());
|
||||||
|
failure.addSuppressed(new Throwable(x));
|
||||||
|
LOG.warn(failure);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
_state = new ErrorState(x);
|
{
|
||||||
|
// Retain the current stack trace by wrapping the failure.
|
||||||
|
_state = new ErrorState(new Throwable(x));
|
||||||
|
}
|
||||||
|
|
||||||
if (_listener == null)
|
if (_listener == null)
|
||||||
_inputQ.notify();
|
_inputQ.notify();
|
||||||
|
|
Loading…
Reference in New Issue