Skip to content

Commit

Permalink
ref: Provide better missing project id error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Nov 3, 2023
1 parent 24cf1b8 commit e750eaa
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 e750eaa

Please sign in to comment.