Skip to content

Commit 97a13f1

Browse files
authored
Improve error message
1 parent bd223e2 commit 97a13f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pygmt/src/logo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ def logo( # noqa: PLR0913
8888

8989
# Prior PyGMT v0.17.0, 'position' can accept a raw GMT CLI string. Check for
9090
# conflicts with other parameters.
91-
if isinstance(position, str) and any(v is not None for v in (height, width)):
91+
if isinstance(position, str) and any(v is not None for v in (width, height)):
9292
msg = (
9393
"Parameter 'position' is given with a raw GMT command string, and conflicts "
94-
"with parameters 'height', and 'width'. "
94+
"with parameters 'width' and 'height'. "
9595
)
9696
raise GMTInvalidInput(msg)
9797

0 commit comments

Comments
 (0)