Commit 09562307 authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov

pycriu: images: mention raw data images when throwing an 'Unknown magic' exception

Signed-off-by: 's avatarRuslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9761dc3a
......@@ -271,7 +271,9 @@ def load(f):
try:
m = magic.by_val[img_magic]
except:
raise Exception("Unknown magic "+str(img_magic))
raise Exception("Unknown magic "+str(img_magic)+".\n"\
"Maybe you are feeding me an image with "\
"raw data(i.e. pages.img)?")
try:
handler = handlers[m]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment