[elbe-devel] [PATCH] initvm/submit: print xml validation errors

Manuel Traut manut at linutronix.de
Tue Aug 8 15:24:48 CEST 2017


print the description why validation fails; not only that it fails.

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/initvmaction.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index 65a10490..612c21a2 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -279,6 +279,7 @@ class CreateAction(InitVMAction):
                     print ('But that xml does not validate correctly', file=sys.stderr)
                     print ('', file=sys.stderr)
                     print ('Exiting !!!', file=sys.stderr)
+                    print (e)
                     sys.exit (20)
 
 
@@ -499,6 +500,7 @@ class SubmitAction(InitVMAction):
                     print ('But that xml does not validate correctly', file=sys.stderr)
                     print ('', file=sys.stderr)
                     print ('Exiting !!!', file=sys.stderr)
+                    print (e)
                     sys.exit (20)
 
                 print ('Iso Image with valid source.xml detected !')
-- 
2.14.0




More information about the elbe-devel mailing list