-
Notifications
You must be signed in to change notification settings - Fork 775
Fix #4207: 网络整合包下载失败没有窗口提示 #4218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
CiiLu
commented
Aug 7, 2025

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes issue #4207 by adding error dialogs for modpack download failures. The changes ensure that when network-based modpack downloads fail, users receive proper visual feedback through error dialog windows instead of silent failures.
- Added error logging and user-facing error dialogs for modpack download failures
- Enhanced error handling in both server manifest and direct modpack download scenarios
- Imported necessary dependencies for error dialog display and logging
controller.onNext(); | ||
} else { | ||
reject.accept(e.getMessage()); | ||
Logger.LOG.error("Failed to download modpack server manifest: ", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里不是致命错误,请使用 warning
而不是 error
。
而且请遵循代码中的惯例,静态导入 Logger.LOG
。
} | ||
} catch (IOException e) { | ||
reject.accept(e.getMessage()); | ||
LOG.warning("Failed to download modpack: ", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
句子尾部不要加多余的冒号。
这个 PR 的处理方式看起来是错误的。原先就存在的 |