forked from TrueCloudLab/frostfs-testlib
Vladimir Domnich
f6ee129354
Also added two simple reporters that can be used by the shell to report command execution details. Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
9 lines
203 B
Python
9 lines
203 B
Python
import traceback
|
|
|
|
|
|
def format_error_details(error: Exception) -> str:
|
|
return "".join(traceback.format_exception(
|
|
etype=type(error),
|
|
value=error,
|
|
tb=error.__traceback__)
|
|
)
|