commit | 3a6f7cdc87ca47fa6152563b4b51be9a88fe564c | [log] [tgz] |
---|---|---|
author | HIGUCHI Yuta <y-higuchi@ak.jp.nec.com> | Wed Feb 25 18:51:25 2015 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Feb 26 03:29:42 2015 +0000 |
tree | 6c35e5d3d5b5f12a6bfc824f6cbbc55181986087 | |
parent | 645bf200d9bb8b17cc28ab3e17a0c8a9849bfdf8 [diff] |
Include deviceId in Exception message Change-Id: I1f730c99090bd5078ca24016675208e93ce476bd
diff --git a/core/store/dist/src/main/java/org/onosproject/store/device/impl/DeviceClockManager.java b/core/store/dist/src/main/java/org/onosproject/store/device/impl/DeviceClockManager.java index ddb45dc..885da07 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/device/impl/DeviceClockManager.java +++ b/core/store/dist/src/main/java/org/onosproject/store/device/impl/DeviceClockManager.java
@@ -62,7 +62,7 @@ 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()); }