Fix UI logic bug.

pull/2/head
Christopher Wellons 2017-03-04 12:05:00 -05:00
parent 10f50c4a22
commit b90e413544
1 changed files with 3 additions and 1 deletions

View File

@ -603,7 +603,9 @@ command_keygen(struct optparse *options)
fatal("operation would clobber %s", pubfile);
if (secfile_exists)
fatal("operation would clobber %s", secfile);
} else if (edit) {
}
if (edit) {
if (!secfile_exists)
fatal("cannot edit non-existing file %s", secfile);
load_seckey(secfile, secret);