Committed by
Gerrit Code Review
Include deviceId in Exception message
Change-Id: I1f730c99090bd5078ca24016675208e93ce476bd
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -62,7 +62,7 @@ public class DeviceClockManager implements DeviceClockService, DeviceClockProvid | ... | @@ -62,7 +62,7 @@ public class DeviceClockManager implements DeviceClockService, DeviceClockProvid |
62 | log.trace("term info for {} is: {}", deviceId, term); | 62 | log.trace("term info for {} is: {}", deviceId, term); |
63 | 63 | ||
64 | if (term == null) { | 64 | if (term == null) { |
65 | - throw new IllegalStateException("Requesting timestamp for a deviceId without mastership"); | 65 | + throw new IllegalStateException("Requesting timestamp for " + deviceId + " without mastership"); |
66 | } | 66 | } |
67 | return new MastershipBasedTimestamp(term.termNumber(), ticker.incrementAndGet()); | 67 | return new MastershipBasedTimestamp(term.termNumber(), ticker.incrementAndGet()); |
68 | } | 68 | } | ... | ... |
-
Please register or login to post a comment