From 07a87ff9de65f389d5dd6587712af1737caaf601 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 27 Feb 2022 02:35:51 +0000 Subject: [PATCH] Fix editing missing apps. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3850 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/client.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/client.js b/core/client.js index 97f0ae13f..bfecaec04 100644 --- a/core/client.js +++ b/core/client.js @@ -204,7 +204,11 @@ function loadFile(name, id) { function load(path) { return fetch((path || url()) + 'view').then(function(response) { if (!response.ok) { - throw new Error(response.status + ' ' + response.statusText); + if (response.status == 404) { + return null; + } else { + throw new Error(response.status + ' ' + response.statusText); + } } return response.json(); }).then(function(json) {