diff --git a/src/test/regress/expected/select_implicit.out b/src/test/regress/expected/select_implicit.out
index 9cc3e4d384ea5b8e2f5d67c6a1f3cfd1d14f8491..2ee8b0482239d3611aab922ca451dfade535a4c8 100644
--- a/src/test/regress/expected/select_implicit.out
+++ b/src/test/regress/expected/select_implicit.out
@@ -32,7 +32,7 @@ count
 (6 rows)
 
 QUERY: SELECT count(*) FROM test_missing_target GROUP BY a ORDER BY b;
-ERROR:  parser: illegal use of aggregates or non-group column in target list
+ERROR:  Illegal use of aggregates or non-group column in target list
 QUERY: SELECT count(*) FROM test_missing_target GROUP BY b ORDER BY b;
 count
 -----
@@ -191,7 +191,7 @@ count
 (4 rows)
 
 QUERY: SELECT count(a) FROM test_missing_target GROUP BY a ORDER BY b;
-ERROR:  parser: illegal use of aggregates or non-group column in target list
+ERROR:  Illegal use of aggregates or non-group column in target list
 QUERY: SELECT count(b) FROM test_missing_target GROUP BY b/2 ORDER BY b/2;
 count
 -----