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 44327cb..7cbbeca 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));
             }
         }