File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,14 +109,15 @@ def __call__(self, args: argparse.Namespace) -> None:
109109 reporters ,
110110 files_to_ignore = superproject .ignored_files (project .destination ),
111111 )
112+ if not args .no_recommendations and os .path .isdir (
113+ project .destination
114+ ):
115+ with in_directory (project .destination ):
116+ check_sub_manifests (superproject .manifest , project )
112117 except RuntimeError as exc :
113118 logger .print_warning_line (project .name , str (exc ))
114119 had_errors = True
115120
116- if not args .no_recommendations and os .path .isdir (project .destination ):
117- with in_directory (project .destination ):
118- check_sub_manifests (superproject .manifest , project )
119-
120121 for reporter in reporters :
121122 reporter .dump_to_file ()
122123
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ def __call__(self, args: argparse.Namespace) -> None:
100100 make_backup = isinstance (superproject , NoVcsSuperProject )
101101
102102 manifest_updated = False
103+ had_errors = False
103104
104105 with in_directory (superproject .root_directory ):
105106 manifest_path = superproject .manifest .path
@@ -134,7 +135,11 @@ def __call__(self, args: argparse.Namespace) -> None:
134135 manifest_updated = True
135136 except RuntimeError as exc :
136137 logger .print_warning_line (project .name , str (exc ))
138+ had_errors = True
137139
138140 if manifest_updated :
139141 superproject .manifest .dump ()
140142 logger .info (f"Updated manifest ({ manifest_path } ) in { os .getcwd ()} " )
143+
144+ if had_errors :
145+ raise RuntimeError ()
You can’t perform that action at this time.
0 commit comments