hasura / hasura/graphql-engine

cli: improve errors returned by CLI

Open
#7,350 0 comments 1 reaction 1 assignee Claimed by @scriptonist View on GitHub
c/cli k/enhancement t/cli t/product-platform
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Currently, most of the errors returned from CLI are raw responses from the server, this is not ideal.

For example, if we are applying metadata, the error returned will be a raw response from the server with line numbers corresponding to the JSON metadata, which is not useful from the CLI project context where it is split into YAML files.
CLI should probably enrich errors from the server with context it has.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.