]> git.ktnx.net Git - mobile-ledger-staging.git/commitdiff
fix format spec in exception reporting
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 11 Nov 2019 06:39:20 +0000 (08:39 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 11 Nov 2019 06:39:20 +0000 (08:39 +0200)
bonus: spot the irony

app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java

index 44327cbe5b4522bfb874f44782424304b693522f..7cbbeca219a47159b6970b301ddb047fb3ca29e2 100644 (file)
@@ -279,7 +279,7 @@ public class NewTransactionModel extends ViewModel {
         public void ensureType(ItemType wantedType) {
             if (type != wantedType) {
                 throw new RuntimeException(
-                        String.format("Actual type (%d) differs from wanted (%s)", type,
+                        String.format("Actual type (%s) differs from wanted (%s)", type,
                                 wantedType));
             }
         }