Skip to content

Commit

Permalink
Improve error management
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanzimanyi committed Oct 6, 2023
1 parent 74a439d commit 1d008cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions postgis/libpgcommon/lwgeom_pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@ void
pg_unparser_errhint(LWGEOM_UNPARSER_RESULT *lwg_unparser_result)
{
/* For the unparser simply output the error message without any associated HINT */
meos_error(ERROR, MEOS_ERR_INVALID_ARG_VALUE,
"%s", lwg_unparser_result->message);
elog(ERROR, "%s", lwg_unparser_result->message);
}

static void *
Expand Down
5 changes: 3 additions & 2 deletions postgis/libpgcommon/lwgeom_transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,9 @@ srid_check_latlong(int32_t srid)
if (srid_is_latlong(srid))
return;

meos_error(ERROR, MEOS_ERR_INVALID_ARG_VALUE,
"Only lon/lat coordinate systems are supported in geography.");
ereport(ERROR, (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("Only lon/lat coordinate systems are supported in geography.")));
}

srs_precision
Expand Down

0 comments on commit 1d008cb

Please sign in to comment.