From 2b267584bb63252a9a76806e2d5aa51a9ef3c3c9 Mon Sep 17 00:00:00 2001 From: Tom Wojciechowski Date: Thu, 19 Sep 2024 15:05:33 +0100 Subject: [PATCH] add error --- .../editor/addons/scene/assets/RepositoryOptimizer.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/editor/src/com/talosvfx/talos/editor/addons/scene/assets/RepositoryOptimizer.java b/editor/src/com/talosvfx/talos/editor/addons/scene/assets/RepositoryOptimizer.java index dc3a7ac0..e371f450 100644 --- a/editor/src/com/talosvfx/talos/editor/addons/scene/assets/RepositoryOptimizer.java +++ b/editor/src/com/talosvfx/talos/editor/addons/scene/assets/RepositoryOptimizer.java @@ -158,7 +158,15 @@ public void handleHttpResponse (Net.HttpResponse httpResponse) { } catch (IOException e) { e.printStackTrace(); } + } else { + Gdx.app.postRunnable(new Runnable() { + @Override + public void run () { + Toasts.getInstance().showErrorToast("Error downloading tools, " + status.getStatusCode()); + } + }); } + } @Override