forked from Qortal/qortal
Fixed misleading exception string.
This commit is contained in:
parent
ab0aeec434
commit
d22a03f1a5
@ -56,7 +56,8 @@ public class ArbitraryDataBuilder {
|
|||||||
ArbitraryTransactionData latestPut = repository.getArbitraryRepository()
|
ArbitraryTransactionData latestPut = repository.getArbitraryRepository()
|
||||||
.getLatestTransaction(this.name, this.service, Method.PUT);
|
.getLatestTransaction(this.name, this.service, Method.PUT);
|
||||||
if (latestPut == null) {
|
if (latestPut == null) {
|
||||||
throw new IllegalStateException("Cannot PATCH without existing PUT. Deploy using PUT first.");
|
throw new IllegalStateException(String.format(
|
||||||
|
"Couldn't find PUT transaction for name %s and service %s", this.name, this.service));
|
||||||
}
|
}
|
||||||
this.latestPutTransaction = latestPut;
|
this.latestPutTransaction = latestPut;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user