Skip to content

no catch for wrong command #4

@LucasAmaralPires

Description

@LucasAmaralPires

There is no catch in case the user types the wrong command. It is exemplified is the code below however it can be found throughout the switch statement in the function

"keys" -> when (cmds[1]) {
"shared" -> {
val pass = reader.readLineX()
writer.writeLineX(pass.toShared())
}
"pubpvt" -> {
val pass = reader.readLineX()
val keys = pass.toPubPvt()
writer.writeLineX(
keys.publicKey.asHexString + ' ' +
keys.secretKey.asHexString
)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions