Skip to content

Adding message argument in WrongDocument Error#39773

Merged
Taym95 merged 3 commits intoservo:mainfrom
shram-laabh:wrong-document-message
Oct 12, 2025
Merged

Adding message argument in WrongDocument Error#39773
Taym95 merged 3 commits intoservo:mainfrom
shram-laabh:wrong-document-message

Conversation

@shram-laabh
Copy link
Copy Markdown
Contributor

@shram-laabh shram-laabh commented Oct 10, 2025

*This pull request address one of the action item of Provide messages in JS errors i.e. it adds message argument in WrongDocument Error *

Testing: This PR is tested using CLI ./mach test-unit -p libservo --jobs=3
Fixes: Provide messages in JS errors

@shram-laabh shram-laabh requested a review from gterzian as a code owner October 10, 2025 16:52
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 10, 2025
@shram-laabh shram-laabh mentioned this pull request Oct 10, 2025
28 tasks
Error::NotFound(None) => DOMErrorName::NotFoundError,
Error::HierarchyRequest => DOMErrorName::HierarchyRequestError,
Error::WrongDocument => DOMErrorName::WrongDocumentError,
Error::WrongDocument(Some(doc_err_custom_message)) => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use new_custom_exception?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Taym, this is taken care.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 12, 2025
@Taym95 Taym95 added this pull request to the merge queue Oct 12, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 12, 2025
Merged via the queue into servo:main with commit 1c24269 Oct 12, 2025
25 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 12, 2025
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.

Provide messages in JS errors

3 participants