misc: added proper error message hints

This commit is contained in:
Sheen Capadngan
2024-09-05 01:20:12 +08:00
parent 803f56cfe5
commit 9e95fdbb58
3 changed files with 38 additions and 12 deletions
+5 -1
View File
@@ -125,7 +125,11 @@ export const slackServiceFactory = ({
if (!slackClientId || !slackClientSecret) {
throw new BadRequestError({
message: "Invalid slack configuration"
message: `Invalid Slack configuration. ${
appCfg.isCloud
? "Please contact the Infisical team."
: "Contact your instance admin to setup Slack integration in the Admin settings."
}`
});
}