-
Notifications
You must be signed in to change notification settings - Fork 40k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25038 from mfojtik/json-line
Automatic merge from submit-queue Display line number on JSON errors Related issue: #12231 This PR will introduce line numbers for all JSON errors in the CLI: (this is existing error reporting for YAML) ```console $ kubectl create -f broken.yaml yaml: line 8: mapping values are not allowed in this context ``` (this is error reporting proposed in this PR for JSON) ```console $ kubectl create -f broken.json json: line 35: invalid character '{' after object key ``` (and this is the current reporting:) ```console $ kubectl create -f broken.json invalid character '{' after object key ``` [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
- Loading branch information
Showing
2 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters