diff src/main/kotlin/name/blackcap/passman/UpdateSubcommand.kt @ 3:eafa3779aef8

More bug fixes, quote strings in diagnostics.
author David Barts <n5jrn@me.com>
date Sun, 11 Sep 2022 20:36:06 -0700
parents 3c792ad36b3d
children 711cc42e96d7
line wrap: on
line diff
--- a/src/main/kotlin/name/blackcap/passman/UpdateSubcommand.kt	Sun Sep 11 18:24:55 2022 -0700
+++ b/src/main/kotlin/name/blackcap/passman/UpdateSubcommand.kt	Sun Sep 11 20:36:06 2022 -0700
@@ -53,7 +53,7 @@
             try {
                 rawLength?.toInt() ?: DEFAULT_GENERATED_LENGTH
             } catch (e: NumberFormatException) {
-                die("$rawLength - invalid length")
+                die("${see(rawLength)} - invalid length")
                 -1  /* will never happen */
             }
         }
@@ -90,7 +90,7 @@
             result.next()
             val count = result.getInt(1)
             if (count < 1) {
-                die("no record matches $nameIn")
+                die("no record matches " + see(nameIn))
             }
         }
     }
@@ -167,4 +167,4 @@
         addOne("password", newPassword)
     }
 
-}
\ No newline at end of file
+}