[cli] Maintain "old-style" for abort (#9943)

This commit is contained in:
Richard Liaw
2020-08-05 20:37:29 -07:00
committed by SangBin Cho
parent b0ad10c936
commit 9c19b14b1e
+3
View File
@@ -328,6 +328,9 @@ class _CliLogger():
Print an error and throw an exception to terminate the program
(the exception will not print a message).
"""
if self.old_style:
return
if msg is not None:
self.error(msg, *args, **kwargs)