Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Fix hooks experience in CLI #2562

Merged
merged 2 commits into from Jun 4, 2018
Merged

Fix hooks experience in CLI #2562

merged 2 commits into from Jun 4, 2018

Conversation

divyenduz
Copy link
Contributor

This PR intends to solve #2362 and related issues (#2560).

Observations:-

  1. Underlying packages (graphql-cli, graphql-config etc) do not write to stderr or emit non-zero status code on failure

  2. Prisma CLI does not always check the status

  3. There are (race?)-conditions that call stop function and render green unintended messages on CLI

  4. We cannot aggressively fail prisma deploy on failing hooks as deployment might already be done. Need to extract the errors gracefully and communicate them back to the user

@divyenduz divyenduz changed the title [WIP] Fix hooks experience in CLI Fix hooks experience in CLI Jun 2, 2018
@timsuchanek timsuchanek merged commit 98432e3 into prisma:alpha Jun 4, 2018
timsuchanek pushed a commit that referenced this pull request Jun 5, 2018
* fix: hooks, check for exit code to update hook output

* fix: hooks, peek error for better failure handling
cmcinroy pushed a commit to cmcinroy/prisma that referenced this pull request Jun 11, 2018
* fix: hooks, check for exit code to update hook output

* fix: hooks, peek error for better failure handling
@divyenduz divyenduz deleted the fix_hooks branch October 19, 2018 05:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants