Skip to content

Commit

Permalink
#105: Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
priscavdsluis committed Jun 28, 2022
1 parent 0d2f08e commit b2252ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydrolib/core/io/structure/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ def _validate_waterlevel_location(x_key: str, y_key: str, node_key: str):
node_is_given and not x_is_given and not y_is_given):
return

raise ValueError(f"Either {node_key} should be specified or {x_key} and {y_key}.")
raise ValueError(f"Either `{node_key}` should be specified or `{x_key}` and `{y_key}`.")

_validate_waterlevel_location(
"waterLevelUpstreamLocationX", "waterLevelUpstreamLocationY", "waterLevelUpstreamNodeId")
Expand Down

0 comments on commit b2252ac

Please sign in to comment.