buck2 icon indicating copy to clipboard operation
buck2 copied to clipboard

buck2_validation: tweak and slightly improve error message

Open thoughtpolice opened this issue 5 months ago • 0 comments

Previously, when using ValidationInfo() with a failure, it ends up turning out an awkward message that turns

{ "status": "failure", "message": "you failed the test!" }

into

"you failed the test!".

After this patch, it comes out as:

you failed the test!

Which seems much more reasonable and easy to parse. It also gives the validation message more control over the punctuation.

thoughtpolice avatar Sep 04 '24 22:09 thoughtpolice