aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/complex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tutorial/complex.c')
-rw-r--r--src/tutorial/complex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tutorial/complex.c b/src/tutorial/complex.c
index 1b5ebc2ff04..6798a9e6ba6 100644
--- a/src/tutorial/complex.c
+++ b/src/tutorial/complex.c
@@ -38,8 +38,8 @@ complex_in(PG_FUNCTION_ARGS)
if (sscanf(str, " ( %lf , %lf )", &x, &y) != 2)
ereport(ERROR,
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
- errmsg("invalid input syntax for complex: \"%s\"",
- str)));
+ errmsg("invalid input syntax for type %s: \"%s\"",
+ "complex", str)));
result = (Complex *) palloc(sizeof(Complex));
result->x = x;