mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-16 19:58:25 +00:00
Add some additional information to error-text in read_restore()
This commit is contained in:
parent
c0c9221521
commit
63ba540f2b
@ -9115,9 +9115,14 @@ void read_restore (const char *eff_restore_file, restore_data_t *rd)
|
|||||||
|
|
||||||
fclose (fp);
|
fclose (fp);
|
||||||
|
|
||||||
|
log_info ("INFO: Changing current working directory to the path found within the .restore file: '%s'", rd->cwd);
|
||||||
|
|
||||||
if (chdir (rd->cwd))
|
if (chdir (rd->cwd))
|
||||||
{
|
{
|
||||||
log_error ("ERROR: cannot chdir to %s: %s", rd->cwd, strerror (errno));
|
log_error ("ERROR: The directory '%s' does not exist. It is needed to restore (--restore) the session.\n"
|
||||||
|
" You could either create this directory (or link it) or update the .restore file using e.g. the analyze_hc_restore.pl tool:\n"
|
||||||
|
" https://github.com/philsmd/analyze_hc_restore\n"
|
||||||
|
" The directory must be relative to (or contain) all files/folders mentioned within the command line.", rd->cwd);
|
||||||
|
|
||||||
exit (-1);
|
exit (-1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user