Skip to content

Commit 08f45ed

Browse files
authored
codecommit throttle check (#816)
* codecommit test backup * prettier * linter fix
1 parent ae7c8f0 commit 08f45ed

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/lib/common-config/src/load.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export async function loadAcceleratorConfig(props: {
1717
const source = file.fileContent.toString();
1818
return AcceleratorConfig.fromString(source);
1919
} catch (e) {
20-
throw new Error(`Unable to load configuration file "${filePath}" in Repository ${repositoryName}\n${e.message}`);
20+
throw new Error(
21+
`Unable to load configuration file "${filePath}" in Repository ${repositoryName}\n${e.message} code:${e.code}`,
22+
);
2123
}
2224
}

src/lib/common/src/aws/backoff.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ export const isThrottlingError = (e: any) =>
2525
e.code === 'Throttling' ||
2626
e.code === 'ThrottlingException' ||
2727
e.code === 'InternalErrorException' ||
28-
e.code === 'InternalException';
28+
e.code === 'InternalException' ||
29+
e.code === 'RateExceeded'; // CodeCommit

0 commit comments

Comments
 (0)