Skip to content

Commit

Permalink
chore: fixed the try catch block error in example (#13057)
Browse files Browse the repository at this point in the history
fix: fixed the try catch block error in example

Co-authored-by: Jim Blanchard <[email protected]>
  • Loading branch information
knackofabhinav and jimblanc authored Feb 27, 2024
1 parent 71156db commit 468f979
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/api-rest/src/apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import {
* cancel(message);
* try {
* await response;
* } cache (e) {
* } catch (e) {
* if (isCancelError(e)) {
* // handle request cancellation
* }
Expand Down Expand Up @@ -100,7 +100,7 @@ export const get = (input: GetInput): GetOperation => commonGet(Amplify, input);
* cancel(message);
* try {
* await response;
* } cache (e) {
* } catch (e) {
* if (isCancelError(e)) {
* // handle request cancellation
* }
Expand Down Expand Up @@ -141,7 +141,7 @@ export const post = (input: PostInput): PostOperation =>
* cancel(message);
* try {
* await response;
* } cache (e) {
* } catch (e) {
* if (isCancelError(e)) {
* // handle request cancellation
* }
Expand Down Expand Up @@ -229,7 +229,7 @@ export const head = (input: HeadInput): HeadOperation =>
* cancel(message);
* try {
* await response;
* } cache (e) {
* } catch (e) {
* if (isCancelError(e)) {
* // handle request cancellation
* }
Expand Down

0 comments on commit 468f979

Please sign in to comment.