Skip to content

[jsondocck] Add 'pretty' errors for shlex::split #81319

Closed
@CraftSpider

Description

@CraftSpider

The following comment causes a panic in jsondocck currently:

// @has "foo

Expected: Pretty error like 'Invalid split pattern on line X'

Current: Giant stack trace, only obvious if you know what that line is doing.

Opening this for tracking and so I don't forget to fix it

Metadata

Metadata

Assignees

Labels

A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustA-rustdoc-jsonArea: Rustdoc JSON backendA-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions