From 96166d092aeb953b20f508168b1f3d05ef6fef18 Mon Sep 17 00:00:00 2001 From: Eslam Fakhry <31700752+eslam-fakhry@users.noreply.github.com> Date: Wed, 20 Nov 2019 01:54:35 +0200 Subject: [PATCH] Fix error message in UpdateItem function (#15776) --- .../first-web-api/samples/3.0/TodoApi/wwwroot/js/site.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/tutorials/first-web-api/samples/3.0/TodoApi/wwwroot/js/site.js b/aspnetcore/tutorials/first-web-api/samples/3.0/TodoApi/wwwroot/js/site.js index ccb35bf1e6..533ecc98f2 100644 --- a/aspnetcore/tutorials/first-web-api/samples/3.0/TodoApi/wwwroot/js/site.js +++ b/aspnetcore/tutorials/first-web-api/samples/3.0/TodoApi/wwwroot/js/site.js @@ -74,7 +74,7 @@ function updateItem() { body: JSON.stringify(item) }) .then(() => getItems()) - .catch(error => console.error('Unable to delete item.', error)); + .catch(error => console.error('Unable to update item.', error)); // closeInput();