Skip to content

Commit

Permalink
ref: Provide better missing project id error message (#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek authored Nov 6, 2023
2 parents 2a631d7 + e750eaa commit 4e9cd47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ var (
CustomRolesPath = filepath.Join(SupabaseDirPath, "roles.sql")

ErrNotLinked = errors.New("Cannot find project ref. Have you run " + Aqua("supabase link") + "?")
ErrInvalidRef = errors.New("Invalid project ref format. Must be like `abcdefghijklmnopqrst`.")
ErrInvalidRef = errors.New("Missing or invalid project ID. Use " + Aqua("--project-ref") + "or" + Aqua("SUPABASE_PROJECT_ID") + "env variable to set it. Project ID can be found on project settings page.")
ErrNotRunning = errors.New(Aqua("supabase start") + " is not running.")
)

Expand Down

0 comments on commit 4e9cd47

Please sign in to comment.