fix(cli): a little bug fix
This commit is contained in:
parent
d148ca3e19
commit
bb5e5f209e
@ -381,9 +381,8 @@ int cli(int argc, char **argv) {
|
||||
opt_s = 0;
|
||||
opt_u = 0;
|
||||
}
|
||||
FILE *config = fopen(config_path, "r");
|
||||
if (config == NULL) {
|
||||
fprintf(stderr, ERROR("Config file not found\n"));
|
||||
if (tanabata_open(&tanabata, tanabata_path) != 0) {
|
||||
fprintf(stderr, ERROR("Failed to load database\n"));
|
||||
return 1;
|
||||
}
|
||||
free(tanabata_path);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user