Give the expected filename when loader cannot be found

Otherwise, it quickly gets annoying to figure out the right filename
from the information the program outputs.

Now it's a quick copy/paste away, no more missing one character.
This commit is contained in:
Samuel Dionne-Riel 2020-04-30 23:15:46 -04:00
parent 40e47f3eb3
commit 0dd8eb452b

View file

@ -422,7 +422,7 @@ class qualcomm_sahara():
#print("Couldn't find a loader for given hwid and pkhash :(")
#exit(0)
else:
logger.error("Couldn't find a loader for given hwid and pkhash :(")
logger.error(f"Couldn't find a loader for given hwid and pkhash ({self.hwidstr}_{self.pkhash[0:16]}_FHPRG.bin) :(")
exit(0)
with open(fname,"rb") as rf:
self.programmer=rf.read()