Skip to content

Commit

Permalink
[~] Error typos
Browse files Browse the repository at this point in the history
[+] Retrieving app zone error message CactuseSecurity#2597
  • Loading branch information
SolidProgramming committed Nov 13, 2024
1 parent 4ded83d commit 2507454
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions roles/database/files/sql/idempotent/fworch-texts.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3069,10 +3069,12 @@ INSERT INTO txt VALUES ('E9017', 'English', 'Interface cannot replace requested
INSERT INTO txt VALUES ('E9101', 'German', 'Fehler bei externer Auftragserzeugung.');
INSERT INTO txt VALUES ('E9101', 'English', 'Error at external ticket creation.');

INSERT INTO txt VALUES ('E9201', 'German', 'Fehler beim löschen der existierenden App Zonen Objekte');
INSERT INTO txt VALUES ('E9201', 'German', 'Fehler beim Löschen der existierenden App Zonen Objekte');
INSERT INTO txt VALUES ('E9201', 'English', 'Error deleting existing app zone objects');
INSERT INTO txt VALUES ('E9202', 'German', 'Fehler beim erzeugen der App Zonen Objekte');
INSERT INTO txt VALUES ('E9202', 'German', 'Fehler beim Erzeugen der App Zonen Objekte');
INSERT INTO txt VALUES ('E9202', 'English', 'Error creating app zone objects');
INSERT INTO txt VALUES ('E9203', 'German', 'Fehler beim Abrufen der existierenden App Zonen Objekte');
INSERT INTO txt VALUES ('E9203', 'English', 'Error retrieving the existing app zone objects');

-- errors from Api
INSERT INTO txt VALUES ('A0001', 'German', 'Ungültige Anmeldedaten. Nutzername darf nicht leer sein');
Expand Down
4 changes: 2 additions & 2 deletions roles/lib/files/FWO.Services/ModellingAppZoneHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ private async Task DeleteExistingAppZones(int ownerId)
try
{
List<ModellingAppZone> existingAppZones = await apiConnection.SendQueryAsync<List<ModellingAppZone>>(ModellingQueries.getAppZonesByAppId, new { appId = appId });

if (existingAppZones is not null)
return (true, existingAppZones);

}
catch (Exception ex)
{
DisplayMessageInUi(ex, userConfig.GetText("app_zone_creation"), "", true);
DisplayMessageInUi(ex, userConfig.GetText("app_zone_creation"), userConfig.GetText("E9203"), true);
}

return (false, []);
Expand Down

0 comments on commit 2507454

Please sign in to comment.