Skip to content

make-genesis.sh broken error handling on too short password #7

@PerMildner

Description

@PerMildner

Entering a too short password gives an error (OK) but then seems to continue in a bad state instead of aborting:

6584a13

-bash$ make install
go install ...
go install ...
-bash$ PATH="$PATH:$HOME/go/bin"
-bash$ ./make-genesis.sh 
{...}
Enter a passphrase to encrypt your key to disk: <<entered a 4 character password>>
ERROR: password must be at least 8 characters
ERROR: Key dex-demo not found
ERROR: accepts 2 arg(s), received 1
/Users/perm/.dexcli/config/config.toml does not exist
configuration saved to /Users/perm/.dexcli/config/config.toml
configuration saved to /Users/perm/.dexcli/config/config.toml
configuration saved to /Users/perm/.dexcli/config/config.toml
configuration saved to /Users/perm/.dexcli/config/config.toml
ERROR: Key dex-demo not found
Collecting genesis txs...
ERROR: open /Users/perm/.dexd/config/gentx: no such file or directory
Validating genesis file...
validating genesis file at /Users/perm/.dexd/config/genesis.json
File at /Users/perm/.dexd/config/genesis.json is a valid genesis file
-bash$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions