diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index da6142dbc..560598e9e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,5 @@ +fail_fast: true + repos: - repo: https://github.com/psf/black rev: 22.10.0 diff --git a/reflex/utils/prerequisites.py b/reflex/utils/prerequisites.py index ac445bf08..4622150f0 100644 --- a/reflex/utils/prerequisites.py +++ b/reflex/utils/prerequisites.py @@ -852,7 +852,7 @@ def needs_reinit(frontend: bool = True) -> bool: """ if not os.path.exists(constants.Config.FILE): console.error( - f"{constants.Config.FILE} not found. Run [bold]{constants.Reflex.MODULE_NAME} init[/bold] first." + f"[cyan]{constants.Config.FILE}[/cyan] not found. Move to the root folder of your project, or run [bold]{constants.Reflex.MODULE_NAME} init[/bold] to start a new project." ) raise typer.Exit(1)