Skip to content

Commit c6a1e76

Browse files
committed
pretty print error summary
1 parent 7f9cab7 commit c6a1e76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bioimageio/core/__main__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from glob import glob
66

77
from pathlib import Path
8+
from pprint import pprint
89
from typing import List, Optional
910

1011
import typer
@@ -110,7 +111,7 @@ def test_model(
110111
ret_code = 0
111112
else:
112113
print(f"Model test for {model_rdf} using {weight_format} weight format has FAILED!")
113-
print(summary)
114+
pprint(summary)
114115
ret_code = 1
115116
sys.exit(ret_code)
116117

@@ -138,7 +139,7 @@ def test_resource(
138139
ret_code = 0
139140
else:
140141
print(f"Resource test for {rdf} has FAILED!")
141-
print(summary)
142+
pprint(summary)
142143
ret_code = 1
143144
sys.exit(ret_code)
144145

0 commit comments

Comments
 (0)