diff --git a/cli/Squidex.CLI/Directory.Build.props b/cli/Squidex.CLI/Directory.Build.props
index 326a29cc..8e437574 100644
--- a/cli/Squidex.CLI/Directory.Build.props
+++ b/cli/Squidex.CLI/Directory.Build.props
@@ -8,6 +8,6 @@
MIT
https://github.com/Squidex/squidex/
Squidex HeadlessCMS
- 8.18
+ 8.19
diff --git a/cli/Squidex.CLI/Squidex.CLI.Core/Commands/Implementation/LogExtensions.cs b/cli/Squidex.CLI/Squidex.CLI.Core/Commands/Implementation/LogExtensions.cs
index f8f3fb4a..71c635b6 100644
--- a/cli/Squidex.CLI/Squidex.CLI.Core/Commands/Implementation/LogExtensions.cs
+++ b/cli/Squidex.CLI/Squidex.CLI.Core/Commands/Implementation/LogExtensions.cs
@@ -127,35 +127,29 @@ public static void HandleException(Exception ex, Action error)
{
switch (ex)
{
- case SquidexManagementException ex1:
- {
- error(ex1.Result.ToString());
- break;
- }
-
- case SquidexManagementException ex2:
- {
- error(ex2.Message);
- break;
- }
-
- case CLIException ex4:
- {
- error(ex4.Message);
- break;
- }
-
- case FileNotFoundException ex5:
- {
- error(ex5.Message);
- break;
- }
-
- case { } ex3:
- {
- error(ex3.ToString());
- throw ex3;
- }
+ case SquidexManagementException typed:
+ error(typed.Result.ToString());
+ break;
+
+ case SquidexManagementException typed:
+ error(typed.Message);
+ break;
+
+ case CLIException typed:
+ error(typed.Message);
+ break;
+
+ case IOException typed:
+ error(typed.Message);
+ break;
+
+ case OperationCanceledException typed:
+ error(typed.Message);
+ break;
+
+ case { } fallback:
+ error(fallback.ToString());
+ break;
}
}
}