diff --git a/LibationLauncher/LibationLauncher.csproj b/LibationLauncher/LibationLauncher.csproj index e40bea35..9f518876 100644 --- a/LibationLauncher/LibationLauncher.csproj +++ b/LibationLauncher/LibationLauncher.csproj @@ -13,7 +13,7 @@ win-x64 - 4.1.5.1 + 4.1.6.1 diff --git a/LibationWinForms/UNTESTED/BookLiberation/ProcessorAutomationController.cs b/LibationWinForms/UNTESTED/BookLiberation/ProcessorAutomationController.cs index 7e85115b..2bb31662 100644 --- a/LibationWinForms/UNTESTED/BookLiberation/ProcessorAutomationController.cs +++ b/LibationWinForms/UNTESTED/BookLiberation/ProcessorAutomationController.cs @@ -1,6 +1,7 @@ using System; using System.Threading.Tasks; using DataLayer; +using Dinah.Core; using Dinah.Core.ErrorHandling; using FileLiberator; @@ -346,6 +347,12 @@ namespace LibationWinForms.BookLiberation try { + const int TRUNC = 150; + + var errMsg = ex.Message.Truncate(TRUNC); + if (ex.Message.Length > TRUNC) + errMsg += "..."; + var text = @$" The below error occurred while trying to process this book. Skip this book permanently? @@ -354,7 +361,7 @@ The below error occurred while trying to process this book. Skip this book perma - Click NO to skip the book this time only. We'll try again later. Error: -{ex.Message} +{errMsg} ".Trim(); var dialogResult = System.Windows.Forms.MessageBox.Show( text,