File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -184,9 +184,13 @@ def __exit__(
184
184
_error_msg = "\n " .join (
185
185
f"{ identifier } :\n { msg } " for identifier , msg in _error_msgs .items ()
186
186
)
187
- logger .error (
187
+ if _error_msg :
188
+ _error_msg = f":\n { _error_msg } "
189
+ click .secho (
188
190
"Simvue process executor terminated with non-zero exit status "
189
- f"{ _non_zero } { (':\n ' + _error_msg ) if _error_msg else '' } "
191
+ f"{ _non_zero } { _error_msg } " ,
192
+ fg = "red" ,
193
+ bold = True ,
190
194
)
191
195
sys .exit (_non_zero )
192
196
@@ -1388,9 +1392,13 @@ def close(self) -> bool:
1388
1392
_error_msg = "\n " .join (
1389
1393
f"{ identifier } :\n { msg } " for identifier , msg in _error_msgs .items ()
1390
1394
)
1391
- logger .error (
1395
+ if _error_msg :
1396
+ _error_msg = f":\n { _error_msg } "
1397
+ click .secho (
1392
1398
"Simvue process executor terminated with non-zero exit status "
1393
- f"{ _non_zero } { (':\n ' + _error_msg ) if _error_msg else '' } "
1399
+ f"{ _non_zero } { _error_msg } " ,
1400
+ fg = "red" ,
1401
+ bold = True ,
1394
1402
)
1395
1403
sys .exit (_non_zero )
1396
1404
You can’t perform that action at this time.
0 commit comments