Skip to content

Error message#2

Merged
riki137 merged 4 commits into
mainfrom
error-message
Jun 16, 2025
Merged

Error message#2
riki137 merged 4 commits into
mainfrom
error-message

Conversation

@riki137

@riki137 riki137 commented Jun 16, 2025

Copy link
Copy Markdown
Owner

No description provided.

@riki137 riki137 requested a review from Copilot June 16, 2025 12:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the error handling behavior across the codebase by replacing LogMessage with ErrorMessage and adjusting associated tests to reflect these changes.

  • Updated test assertions in multiple test files
  • Modified error message instantiation in serialization and transport classes
  • Introduced a new constant LEVEL_JUNK in LogMessage for non-critical error logging

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/Unit/JsonMessageSerializerTest.php Updated tests to expect ErrorMessage and improved error message contents
tests/Unit/IpcSessionTest.php Modified test expectations to use ErrorMessage in error dispatch
tests/Unit/FrameCodecTest.php Updated test assertions to expect ErrorMessage in frame deserialization errors
src/Transport/NativeFrameReader.php Minor formatting change
src/Transport/FrameCodec.php Switched error instantiation to ErrorMessage; adjusted log message for junk data
src/Serialization/JsonMessageSerializer.php Replaced LogMessage with ErrorMessage for error return cases
src/NativeIpcPeer.php Adjusted use statements and ordering
src/Message/LogMessage.php Added constant LEVEL_JUNK
src/Message/ErrorMessage.php Introduced new ErrorMessage implementation
src/IpcSession.php Updated error handling in dispatch to use ErrorMessage
src/Envelope/ResponsePromise.php Minor whitespace changes
src/AmphpIpcPeer.php Adjusted use statement ordering

Comment thread src/Transport/FrameCodec.php Outdated
@codecov-commenter

codecov-commenter commented Jun 16, 2025

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 92.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/Serialization/JsonMessageSerializer.php 66.66% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

riki137 and others added 2 commits June 16, 2025 14:51
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@riki137 riki137 merged commit 58ecf19 into main Jun 16, 2025
2 checks passed
@riki137 riki137 deleted the error-message branch June 24, 2025 13:17
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.

3 participants