diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-10-04 01:20:13 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-10-04 01:20:13 +0300 |
commit | fa41863b03bbf67a7ad4edad9328b0cdc48e497b (patch) | |
tree | e7e4dd5986364c29a3d51ac661ce9b133effc868 /src/actions.c | |
parent | bc2899dd69fce0f1868dbfad3394ef8b3dc48069 (diff) | |
download | ck-fa41863b03bbf67a7ad4edad9328b0cdc48e497b.tar.gz ck-fa41863b03bbf67a7ad4edad9328b0cdc48e497b.tar.bz2 ck-fa41863b03bbf67a7ad4edad9328b0cdc48e497b.zip |
store configs in subfolders and error/logging infrastructure
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions.c b/src/actions.c index 59343ab..186bf9d 100644 --- a/src/actions.c +++ b/src/actions.c @@ -48,7 +48,7 @@ int run_ADD(UserOpt * opt, Conf *conf) { case ADD_NO_ERR: break; case ADD_ERR_WRONG_CONFIG: - PRINT_ERR("The config file specified doesn't exist."); + PRINT_ERR("The config file specified doesn't exist or is a link."); goto error; case ADD_ERR_WRONG_FLAGS: PRINT_ERR("Flags are: -s for secret and -p for primary."); @@ -114,7 +114,7 @@ int run_EDIT(UserOpt *opt, Conf *conf) { char confName[STR_M]; int secret = 0; if (edit_get_prime_config_from_program(&db, list_get(opt->args), confName, &secret) == 1) { - str_join_dirname_with_basename(confPath, secret ? conf->SCRT_dir : conf->VC_dir, confName); + str_join_dirname_with_basename(confPath, secret ? conf->scrt_dir : conf->vc_dir, confName); printf("%s\n", confPath); } else { PRINT_ERR("No primary config"); |