Skip to content

Commit de0f5ab

Browse files
committed
cleaning up my PR
1 parent eeeb249 commit de0f5ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyccel/codegen/compiling/compilers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ def _get_exec(self, accelerators):
136136
# Reset PATH variable
137137
os.environ['PATH'] = current_path
138138

139-
140-
# errors.report(f"Could not find compiler ({exec_cmd})",
141-
# severity='fatal')
139+
if exec_loc is None:
140+
errors.report(f"Could not find compiler ({exec_cmd})",
141+
severity='fatal')
142142

143143
return exec_loc
144144

pyccel/codegen/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def get_module_dependencies(parser, deps):
389389
output_folder=pyccel_dirpath,
390390
verbose=verbose)
391391
except Exception:
392-
handle_error('compilation')
392+
handle_error('Fortran compilation')
393393
raise
394394

395395

0 commit comments

Comments
 (0)