xataio / client-ts

Xata.io SDK for TypeScript and JavaScript
https://xata.io/docs/sdk/typescript/overview
Apache License 2.0
123 stars 8 forks source link

"fatal" error logged to console, but execution continues #493

Closed TejasQ closed 2 years ago

TejasQ commented 2 years ago

Describe the bug image

image

To Reproduce Run xata init, xata schema dump, or any command in a directory that isn't a git repo.

Expected behavior Either a warning is displayed:

You're not in a git repo, so Xata branches will not be mapped to git branches. More in the docs:

Or, this "fatal" error is not rendered since it doesn't seem to cause any blocking problems.

Software version @xata.io/cli/0.7.0 darwin-arm64 node-v16.15.1

SferaDev commented 2 years ago

Duplicated of https://github.com/xataio/client-ts/issues/466

gimenete commented 2 years ago

Closing in favor of https://github.com/xataio/client-ts/issues/466