fix: Handle ServiceIncompatibilityException

So that the application doesn't immediately exit
pull/231/head
Robert Dailey 1 year ago
parent a1af9f2d78
commit 9f349d674a

@ -1,5 +1,6 @@
using Flurl.Http; using Flurl.Http;
using Recyclarr.Cli.Console; using Recyclarr.Cli.Console;
using Recyclarr.Compatibility;
using Recyclarr.Config.ExceptionTypes; using Recyclarr.Config.ExceptionTypes;
using Recyclarr.Config.Parsing.ErrorHandling; using Recyclarr.Config.Parsing.ErrorHandling;
using Recyclarr.ServarrApi.Http; using Recyclarr.ServarrApi.Http;
@ -61,6 +62,10 @@ public class ConsoleExceptionHandler
_log.Error("Configuration post-processing failed: {Message}", e.Message); _log.Error("Configuration post-processing failed: {Message}", e.Message);
break; break;
case ServiceIncompatibilityException e:
_log.Error(e.Message);
break;
case CommandException e: case CommandException e:
_log.Error(e.Message); _log.Error(e.Message);
break; break;

Loading…
Cancel
Save