fix formatting of coords error message

develop
myk002 2021-07-05 16:01:07 -07:00
parent f62ff3ecc0
commit 17d4be14f3
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 2 additions and 1 deletions

@ -199,7 +199,8 @@ function coords(arg, arg_name, skip_validation)
check_nonnegative_int(numbers[2]),
check_nonnegative_int(numbers[3]))
if not skip_validation and not dfhack.maps.isValidTilePos(pos) then
arg_error('specified coordinates not on current map: "%s"', arg)
arg_error(arg_name,
'specified coordinates not on current map: "%s"', arg)
end
return pos
end