[CRIU] [PATCH 7/7] pycriu: images: mention raw data images when throwing an 'Unknown magic' exception
Ruslan Kuprieiev
kupruser at gmail.com
Wed Jan 14 06:32:41 PST 2015
Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
pycriu/images/images.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pycriu/images/images.py b/pycriu/images/images.py
index 6c85f4c..4da53d6 100644
--- a/pycriu/images/images.py
+++ b/pycriu/images/images.py
@@ -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]
--
2.1.0
More information about the CRIU
mailing list