mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-12-05 21:27:13 -06:00
more helpful error messages
This commit is contained in:
2
main.c
2
main.c
@@ -214,7 +214,7 @@ static void savecheckpoint(void)
|
|||||||
|
|
||||||
if (syncwrite(checkpointfile,1,checkpoint,SEED_LEN) < 0) {
|
if (syncwrite(checkpointfile,1,checkpoint,SEED_LEN) < 0) {
|
||||||
pthread_mutex_lock(&fout_mutex);
|
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);
|
pthread_mutex_unlock(&fout_mutex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
worker.c
2
worker.c
@@ -102,7 +102,7 @@ static void onionready(char *sname,const u8 *secret,const u8 *pubonion)
|
|||||||
if (!yamloutput) {
|
if (!yamloutput) {
|
||||||
if (createdir(sname,1) != 0) {
|
if (createdir(sname,1) != 0) {
|
||||||
pthread_mutex_lock(&fout_mutex);
|
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);
|
pthread_mutex_unlock(&fout_mutex);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
2
yaml.c
2
yaml.c
@@ -274,7 +274,7 @@ int yamlin_parseandcreate(
|
|||||||
sigprocmask(SIG_BLOCK,&nset,&oset);
|
sigprocmask(SIG_BLOCK,&nset,&oset);
|
||||||
#endif
|
#endif
|
||||||
if (createdir(sname,1) != 0) {
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user