We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92b8177 commit 06df3c6Copy full SHA for 06df3c6
src/api/functions/cloudfrontKvStore.ts
@@ -11,6 +11,7 @@ import {
11
DatabaseDeleteError,
12
DatabaseFetchError,
13
DatabaseInsertError,
14
+ InternalServerError,
15
} from "common/errors/index.js";
16
import { RunEnvironment } from "common/roles.js";
17
import "@aws-sdk/signature-v4-crt";
@@ -145,7 +146,7 @@ export const getLinkryKvArn = async (runEnvironment: RunEnvironment) => {
145
146
if (environmentConfig[runEnvironment].LinkryCloudfrontKvArn) {
147
return environmentConfig[runEnvironment].LinkryCloudfrontKvArn;
148
}
- throw new DatabaseInsertError({
149
+ throw new InternalServerError({
150
message: "Could not find the Cloudfront Key-Value store ARN",
151
});
152
};
0 commit comments