Skip to content

Commit ccf9879

Browse files
committed
Improve error message
1 parent e9e8a40 commit ccf9879

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

polaris/tasks/ocean/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,9 @@ def _detect_model(self, config) -> str:
253253
return 'mpas-ocean'
254254
else:
255255
raise ValueError(
256-
'Could not detect ocean model; neither MPAS-Ocean '
257-
'nor Omega appear to be available.'
256+
f'Could not detect ocean model; neither MPAS-Ocean '
257+
f'nor Omega appear to be available; '
258+
f'searched {omega_path} and {mpas_ocean_path}.'
258259
)
259260

260261
def _detect_omega_build(self, path) -> bool:

0 commit comments

Comments
 (0)