HIGUCHI Yuta
Committed by Gerrit Code Review

Include deviceId in Exception message

Change-Id: I1f730c99090bd5078ca24016675208e93ce476bd
......@@ -62,7 +62,7 @@ public class DeviceClockManager implements DeviceClockService, DeviceClockProvid
log.trace("term info for {} is: {}", deviceId, term);
if (term == null) {
throw new IllegalStateException("Requesting timestamp for a deviceId without mastership");
throw new IllegalStateException("Requesting timestamp for " + deviceId + " without mastership");
}
return new MastershipBasedTimestamp(term.termNumber(), ticker.incrementAndGet());
}
......