Skip to content

Commit

Permalink
more helpful error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
cathugger committed Dec 19, 2022
1 parent d202229 commit 309b86f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static void savecheckpoint(void)

if (syncwrite(checkpointfile,1,checkpoint,SEED_LEN) < 0) {
pthread_mutex_lock(&fout_mutex);
fprintf(stderr,"ERROR: could not save checkpoint\n");
fprintf(stderr,"ERROR: could not save checkpoint to \"%s\"\n",checkpointfile);
pthread_mutex_unlock(&fout_mutex);
}
}
Expand Down
2 changes: 1 addition & 1 deletion worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static void onionready(char *sname,const u8 *secret,const u8 *pubonion)
if (!yamloutput) {
if (createdir(sname,1) != 0) {
pthread_mutex_lock(&fout_mutex);
fprintf(stderr,"ERROR: could not create directory for key output\n");
fprintf(stderr,"ERROR: could not create directory \"%s\" for key output\n",sname);
pthread_mutex_unlock(&fout_mutex);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion yaml.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ int yamlin_parseandcreate(
sigprocmask(SIG_BLOCK,&nset,&oset);
#endif
if (createdir(sname,1) != 0) {
fprintf(stderr,"ERROR: could not create directory for key output\n");
fprintf(stderr,"ERROR: could not create directory \"%s\" for key output\n",sname);
return 1;
}

Expand Down

0 comments on commit 309b86f

Please sign in to comment.