File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -152,12 +152,16 @@ def resolve_cppython(
152152
153153 # Construct dependencies from the local configuration only
154154 dependencies : list [Requirement ] = []
155+ invalid_requirements : list [str ] = []
155156 if local_configuration .dependencies :
156157 for dependency in local_configuration .dependencies :
157158 try :
158159 dependencies .append (Requirement (dependency ))
159160 except InvalidRequirement as error :
160- raise ConfigException (f"Invalid requirement '{ dependency } ' in dependencies: { error } " , []) from error
161+ invalid_requirements .append (f"Invalid requirement '{ dependency } ': { error } " )
162+
163+ if invalid_requirements :
164+ raise ConfigException ('\n ' .join (invalid_requirements ), [])
161165
162166 cppython_data = CPPythonData (
163167 configuration_path = modified_configuration_path ,
You can’t perform that action at this time.
0 commit comments