Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

fix: Exception Handling and multiline comment #2092

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

qnixsynapse
Copy link
Contributor

Describe Your Changes

  • This pull request addresses two key improvements in the codebase:

    • Exception Handling Improvement:
      Updated the exception handling in the Text struct's ToJson method. The catch clause now correctly captures the exception by reference (const std::exception & e) instead of by value. This change prevents unnecessary copying of the exception object and adheres to best practices for exception handling in C++.
    • Logging Code multiline comment fix:
      Commented out the unused GGUF_LOG macro in gguf_file.cpp using a block comment to resolve compiler complaints about multiline comments.

Fixes Issues

  • Closes #
  • Closes #

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@qnixsynapse qnixsynapse merged commit e541d12 into dev Mar 11, 2025
8 checks passed
@qnixsynapse qnixsynapse deleted the fix/exception_handling_by_ref branch March 11, 2025 02:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants