Skip to content

Commit e96b7c6

Browse files
committed
sepgsql: Improve error message when unsupported object type is labeled.
KaiGai Kohei, reviewed by Álvaro Herrera and myself
1 parent e529cd4 commit e96b7c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

contrib/sepgsql/label.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,10 @@ sepgsql_object_relabel(const ObjectAddress *object, const char *seclabel)
532532
break;
533533

534534
default:
535-
elog(ERROR, "unsupported object type: %u", object->classId);
535+
ereport(ERROR,
536+
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
537+
errmsg("sepgsql provider does not support labels on %s",
538+
getObjectTypeDescription(object))));
536539
break;
537540
}
538541
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy