Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccreight committed Aug 10, 2023
1 parent f7861ec commit 9748009
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pywatershed/base/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,9 @@ def _parse_netcdf_control_options(self):

if output_dir is None and any_netcdf_options:
raise RuntimeError(
"All netcdf options should be in control.options or passed"
"to Model.initialize_netcdf() but not mixed."
"All netcdf options should be in control.options or passed "
"to Model.initialize_netcdf() but not mixed. You have not "
"supplied 'netcdf_output_dir' in control.options."
)

self._netcdf_opts = {
Expand Down

0 comments on commit 9748009

Please sign in to comment.