refactor(Worker): update error message

This commit is contained in:
glarwood 2019-03-22 18:10:29 +00:00
parent 8642f0b40b
commit 4ffc50a8ff

View file

@ -522,7 +522,7 @@ public class Worker implements Runnable {
Thread.sleep(idleTimeInMilliseconds);
} catch (Exception e) {
if (causedByStreamRecordProcessingError(e))
throw new RuntimeException("Failing worker after irrecoverable failure in processing records");
throw new RuntimeException("Failing worker after irrecoverable failure: " + e.getMessage());
if (exitOnFailure && retries.getAndIncrement() > MAX_RETRIES)
throw new RuntimeException("Failing after " + MAX_RETRIES + " attempts", e);