adding errors to docs

This commit is contained in:
Andy Eschbacher
2016-05-11 14:50:23 -04:00
parent 2be3943e56
commit b21ff8a65e
2 changed files with 42 additions and 5 deletions

View File

@@ -118,7 +118,7 @@ BEGIN
-- If not point, raise error
IF ST_GeometryType(geom) != 'ST_Point'
THEN
RAISE EXCEPTION 'Error: Invalid geometry type (%), expecting ''ST_Point''', ST_GeometryType(geom);
RAISE EXCEPTION 'Invalid geometry type (%), expecting ''ST_Point''', ST_GeometryType(geom);
END IF;
-- choose appropriate table based on time_span
@@ -142,7 +142,7 @@ BEGIN
-- if no tables are found, raise error
IF target_table IS NULL
THEN
RAISE NOTICE 'Error: No boundaries found for ''%''', boundary_id;
RAISE NOTICE 'Warning: No boundaries found for ''%''', boundary_id;
RETURN NULL::text;
END IF;