From 81c3776234e759f05166cdfac1ceabe8fa0b3dc9 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 26 Dec 2019 20:23:06 +0100 Subject: [PATCH] Condensing codepaths --- Site/Pages/v5/Ledgers/EndOfMonth.aspx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Site/Pages/v5/Ledgers/EndOfMonth.aspx b/Site/Pages/v5/Ledgers/EndOfMonth.aspx index 22a14cc7..47bec28c 100644 --- a/Site/Pages/v5/Ledgers/EndOfMonth.aspx +++ b/Site/Pages/v5/Ledgers/EndOfMonth.aspx @@ -294,8 +294,7 @@ if (itemType == "BankTransactionData") { // Show a pretty dialog telling the user that things went to unpretty shit - alert("Checkpoint hit"); - + alertify.alert("THIS FILE CANNOT BE PROCESSED

There was an error trying to read the file. Is it really a file of the right type, for the right bank?

Please try again. If the error persists, try getting a fresh transaction file."); // TODO: Localize } activeUpload = null; @@ -323,9 +322,7 @@ activeUpload = null; } else { - if (result.DisplayMessage == "ERROR_FILEDATAFORMAT") { - alertify.alert("THIS FILE CANNOT BE PROCESSED

There was an error trying to read the file. Is it really a file of the right type, for the right bank?"); // TODO: Localize - } else { + if (result.DisplayMessage != "ERROR_FILEDATAFORMAT") { alert(result.DisplayMessage); // temporary debug function } // Todo: add more error handling later, maybe