Skip to content

Commit

Permalink
fix: improves error mmessage
Browse files Browse the repository at this point in the history
  • Loading branch information
akshbhu committed Nov 21, 2021
1 parent 47253d9 commit 445cb28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const getAppSyncApiResourceName = async (context: $TSContext): Promise<st
const resource = apiResource[0];
apiResourceName = resource.resourceName;
} else {
throw new Error('AppSync Api does not exists, Do add an api , use a `amplify update api`');
throw new Error(`${AmplifySupportedService.APPSYNC} API does not exist. To add an api, use "amplify update api".`);
}
return apiResourceName;
};

0 comments on commit 445cb28

Please sign in to comment.