Include deviceId in Exception message

Change-Id: I1f730c99090bd5078ca24016675208e93ce476bd
This commit is contained in:
HIGUCHI Yuta 2015-02-25 18:51:25 -08:00 committed by Gerrit Code Review
parent 645bf200d9
commit 3a6f7cdc87

View File

@ -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());
}