Skip to content

Commit

Permalink
Fix error and warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rsxrwscjpzdzwpxaujrr committed May 9, 2020
1 parent c93393e commit 8ba8962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ int config_read(Config* config) {
if (!file) {
if (errno == ENOENT) {
fprintf(stderr,
"Warning! Config file " CONFIG_DEFAULT_PATH
"WARNING: Config file " CONFIG_DEFAULT_PATH
" does not exist, loading with default parameters.\n");
fflush(stderr);
goto defaults;
}

fprintf(stderr,
"Cannot open file %s. Reason: %s.\n",
"ERROR: Cannot open file %s. Reason: %s.\n",
CONFIG_DEFAULT_PATH,
strerror(errno));
fflush(stderr);
Expand Down

0 comments on commit 8ba8962

Please sign in to comment.