From 45baeb4933be72b97f7f93ac5c0d292b206a4fbc Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 16 May 2023 00:16:46 -0400 Subject: [PATCH] Log zenity error --- core/src/mindustry/core/Platform.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/core/Platform.java b/core/src/mindustry/core/Platform.java index 7ee4a6c32a..b0c5073e76 100644 --- a/core/src/mindustry/core/Platform.java +++ b/core/src/mindustry/core/Platform.java @@ -177,7 +177,7 @@ public interface Platform{ if(result.isEmpty() || result.equals("\n")) return; if(result.endsWith("\n")) result = result.substring(0, result.length() - 1); - if(result.contains("\n")) throw new IOException("invalid input"); + if(result.contains("\n")) throw new IOException("invalid input: \"" + result + "\""); Fi file = Core.files.absolute(result); Core.app.post(() -> { @@ -190,6 +190,7 @@ public interface Platform{ } }); }catch(Exception e){ + Log.err(e); Log.warn("zenity not found, using non-native file dialog. Consider installing `zenity` for native file dialogs."); Core.app.post(fallback); }