diff options
| author | Brendan Jurd <brendan.jurd@geoplex.com.au> | 2022-02-04 12:56:25 +1100 |
|---|---|---|
| committer | Brendan Jurd <brendan.jurd@geoplex.com.au> | 2022-02-04 13:46:25 +1100 |
| commit | c868ea010de15b98ee1e67a81e0a29cc4a1ab734 (patch) | |
| tree | 221cb0dab519c3a863b1281fe44053d6e980dd84 /test/gie/4D-API_cs2cs-style.gie | |
| parent | fc46c5bac52a20d56ea09566accfcb91198116a0 (diff) | |
| download | PROJ-c868ea010de15b98ee1e67a81e0a29cc4a1ab734.tar.gz PROJ-c868ea010de15b98ee1e67a81e0a29cc4a1ab734.zip | |
Set more precise error code for parsing errors in proj_create().
If proj_create() catches a ParsingException, and the error code hasn't
otherwise been set internally, set the error code to
PROJ_ERR_INVALID_OP_WRONG_SYNTAX instead of allowing it to default to
the generic PROJ_ERR_OTHER.
Ref #2529
Diffstat (limited to 'test/gie/4D-API_cs2cs-style.gie')
| -rw-r--r-- | test/gie/4D-API_cs2cs-style.gie | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/gie/4D-API_cs2cs-style.gie b/test/gie/4D-API_cs2cs-style.gie index 9189b328..1b0c1541 100644 --- a/test/gie/4D-API_cs2cs-style.gie +++ b/test/gie/4D-API_cs2cs-style.gie @@ -533,11 +533,11 @@ expect 0 0 1 roundtrip 1 ------------------------------------------------------------------------------- -# Check that proj_create() returns a generic error when an exception is caught +# Check that proj_create() returns a syntax error when an exception is caught # in the creation of a PJ object. ------------------------------------------------------------------------------- -operation this is a bogus CRS meant to trigger a generic error in proj_create() -expect failure errno other +operation this is a bogus CRS meant to trigger a syntax error in proj_create() +expect failure errno invalid_op_wrong_syntax ------------------------------------------------------------------------------- # Test proj=set |
