[Fixed] Support list of errors (not just tuple)
This commit is contained in:
parent
9b87aabd9b
commit
568510ecd7
|
|
@ -781,7 +781,7 @@ class GS(object):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def exit_with_error(msg, level):
|
def exit_with_error(msg, level):
|
||||||
GS.trace_dump()
|
GS.trace_dump()
|
||||||
if isinstance(msg, tuple):
|
if isinstance(msg, (tuple, list)):
|
||||||
for m in msg:
|
for m in msg:
|
||||||
logger.error(m)
|
logger.error(m)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue