Skip to content

2026PKUCourseHW5:Add file open checks for multiple output files#7134

Open
GenZeal-Lin wants to merge 1 commit intodeepmodeling:developfrom
GenZeal-Lin:hw5-case4-open-check
Open

2026PKUCourseHW5:Add file open checks for multiple output files#7134
GenZeal-Lin wants to merge 1 commit intodeepmodeling:developfrom
GenZeal-Lin:hw5-case4-open-check

Conversation

@GenZeal-Lin
Copy link

Unit Tests and/or Case Tests for my changes

  • No new unit test was added.
  • This PR improves robustness by adding file-open checks before writing output files.

What's changed?

  • Add file-open checks for several output files.
  • Throw std::runtime_error with the output file path when opening a file fails.
  • This makes output-related failures easier to detect and debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant