change to a nicer error message when reflex run
fail (#3023)
This commit is contained in:
parent
43dff5397c
commit
11a64e04d5
@ -1,3 +1,5 @@
|
|||||||
|
fail_fast: true
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 22.10.0
|
rev: 22.10.0
|
||||||
|
@ -852,7 +852,7 @@ def needs_reinit(frontend: bool = True) -> bool:
|
|||||||
"""
|
"""
|
||||||
if not os.path.exists(constants.Config.FILE):
|
if not os.path.exists(constants.Config.FILE):
|
||||||
console.error(
|
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)
|
raise typer.Exit(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user