Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue: use Value.Err in examples using Compile APIs
The Context.CompileString docs say: The returned Value will represent an error, accessible through Err, if any error occurred. Our two examples involving these APIs did not check for an error. This can be OK if the user is sure an error won't happen, but in general that's not a safe assumption to make. Do the safer and recommended error check in the examples. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I1dd758d275f457db9eadc9aa6bf0faf7805fdb2b Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1197696 Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Matthew Sackman <[email protected]>
- Loading branch information