Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cli/configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ load_config(void)
config_file = NULL;
goto cleanup;
} else if (eaccess(config_file, F_OK) && (errno == ENOENT)) {
ERROR(__func__, "No saved configuration.");
goto cleanup;
}

Expand Down Expand Up @@ -495,7 +494,7 @@ store_config(void)
struct lys_module *cli = NULL;
const char *str;

if (ly_ctx_new(NULL, 0, &ctx)) {
if (ly_ctx_new(ly_yang_module_dir(), 0, &ctx)) {
ERROR(__func__, "Failed to create context.");
ERROR(__func__, "Unable to store configuration due to the previous error.");
goto cleanup;
Expand Down