Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates value error messages to be consistent. #675

Merged
merged 2 commits into from
Mar 25, 2022

Conversation

johnjaylward
Copy link
Contributor

@johnjaylward johnjaylward commented Mar 21, 2022

Fixes #649

What problem does this code solve?

Updates value error messages to be consistent. Some errors would output value information, but others not.

Provide both the type and value that failed conversion. Tries not to
"toString" large value types like Arrays or Maps. For those types it
will just output the type and not a value.

Risks

Low

Changes to the API?

No

Will this require a new release?

Yes

Should the documentation be updated?

No

Does it break the unit tests?

Yes. Some tests that verify error messages have been updated.

Was any code refactored in this commit?

Private methods were removed that allowed generation of the error messages with no value information.

Review status
APPROVED

John J. Aylward added 2 commits March 21, 2022 12:48
Provide both the type and value that failed conversion. Tries not to
"toString" large value types like Arrays or Maps. For those types it
will just output the type and not a value.
@stleary
Copy link
Owner

stleary commented Mar 22, 2022

Thanks @johnjaylward starting 3 day comment window.

@stleary stleary merged commit 6f92a3a into stleary:master Mar 25, 2022
gcf-merge-on-green bot referenced this pull request in googleapis/java-spanner Sep 29, 2022
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [org.json:json](https://togithub.com/douglascrockford/JSON-java) | `20220320` -> `20220924` | [![age](https://badges.renovateapi.com/packages/maven/org.json:json/20220924/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.json:json/20220924/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.json:json/20220924/compatibility-slim/20220320)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.json:json/20220924/confidence-slim/20220320)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>douglascrockford/JSON-java</summary>

### [`v20220924`](https://togithub.com/stleary/JSON-java/releases/tag/20220924)

[Compare Source](https://togithub.com/douglascrockford/JSON-java/compare/20220320...20220924)

| Pull Request | Description |
|---------------|--------------|
| [#&#8203;688](https://togithub.com/douglascrockford/JSON-java/issues/688) | Update copyright to Public Domain |
| [#&#8203;687](https://togithub.com/douglascrockford/JSON-java/issues/687) | Fix a typo |
| [#&#8203;685](https://togithub.com/douglascrockford/JSON-java/issues/685) | JSONObject map type unit tests |
| [#&#8203;684](https://togithub.com/douglascrockford/JSON-java/issues/684) | Remove v7 build from pipeline |
| [#&#8203;682](https://togithub.com/douglascrockford/JSON-java/issues/682) | JSONString similarity |
| [#&#8203;675](https://togithub.com/douglascrockford/JSON-java/issues/675) | [https://github.com/stleary/JSON-java/pull/675](https://togithub.com/stleary/JSON-java/pull/675) |

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-spanner).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMDEuMyIsInVwZGF0ZWRJblZlciI6IjMyLjIwMS4zIn0=-->
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.

Suggestion: more helpful wrong-type errors
2 participants