diff --git a/TwinpackShared/Protocol/Authentication.cs b/TwinpackShared/Protocol/Authentication.cs index 7145bb3..6e794bb 100644 --- a/TwinpackShared/Protocol/Authentication.cs +++ b/TwinpackShared/Protocol/Authentication.cs @@ -74,20 +74,24 @@ public async Task LoginAsync(bool onlyTry = false, CancellationToken cancellatio } catch (Exception ex) { - message = "Login to Twinpack Server failed!"; + message = $@"Login to Twinpack Server failed, see '%LOCALAPPDATA%\Zeugwerk\logs\Twinpack' for details!"; _logger.Trace(ex); _logger.Error(ex.Message); } - if (!_packageServer.LoggedIn && _packageServer.UrlRegister != null) + if (!_packageServer.LoggedIn) { - if (MessageBox.Show($@"{message} Do you want to register?", "Login failed", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes) + if (_packageServer.UrlRegister != null) { - Process.Start(_packageServer.UrlRegister); + if (MessageBox.Show($"{message}\n\nDo you need to register?", "Login failed", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes) + Process.Start(_packageServer.UrlRegister); + else + return; } else { - return; + if (MessageBox.Show($"{message}\n\nRetry?", "Login failed", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.No) + return; } } }