Skip to content

Commit 641b74c

Browse files
committed
Improved blacklisted error message
1 parent 7885045 commit 641b74c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/webapp/app/v3/environmentVariables/environmentVariablesRepository.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ export class EnvironmentVariablesRepository implements Repository {
9292

9393
// Remove `TRIGGER_SECRET_KEY` or `TRIGGER_API_URL`
9494
let values = removeBlacklistedVariables(options.variables);
95-
const removedDuplicates = values.length !== options.variables.length;
95+
const removedBlacklisted = values.length !== options.variables.length;
9696

9797
//get rid of empty variables
9898
values = values.filter((v) => v.key.trim() !== "" && v.value.trim() !== "");
9999
if (values.length === 0) {
100100
return {
101101
success: false as const,
102102
error: `You must set at least one valid variable.${
103-
removedDuplicates ? " These were ignored because they're blacklisted." : ""
103+
removedBlacklisted ? " All the variables submitted are not allowed." : ""
104104
}`,
105105
};
106106
}

0 commit comments

Comments
 (0)