Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Single Page App - Handling Errors Retrieving Data in Amplify
amplify.request({
resourceId: "easyData",
success: function (data, status) {
$("#products").text(data.products).show();
},
error: function (data, status) {
if (status === "abort") {
console.log("loading aborted");
}
else {
console.log("error loading products " + status);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.