From 6a7ba72a98cd800771d5fdbbb673b74777adbf58 Mon Sep 17 00:00:00 2001 From: "luca.weidmann@gmx.de" Date: Wed, 13 Nov 2024 10:49:32 +0100 Subject: [PATCH] [~] Fix error message #2597 --- roles/lib/files/FWO.Services/ModellingAppZoneHandler.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/lib/files/FWO.Services/ModellingAppZoneHandler.cs b/roles/lib/files/FWO.Services/ModellingAppZoneHandler.cs index f5766a331..95a704e3b 100644 --- a/roles/lib/files/FWO.Services/ModellingAppZoneHandler.cs +++ b/roles/lib/files/FWO.Services/ModellingAppZoneHandler.cs @@ -36,7 +36,9 @@ public async Task CreateAppZones(int appId) if (owner is null) { - DisplayMessageInUi(null, userConfig.GetText("app_zone_creation"), userConfig.GetText("app_owner_not_found"), false); + string errorMessage = $"{userConfig.GetText("app_owner_not_found")}: App-Id: {appId}"; + Exception exception = new ArgumentException(errorMessage); + DisplayMessageInUi(exception, userConfig.GetText("app_zone_creation"), errorMessage, false); return; }