authgear / authgear/authgear-server

[Command] authgear database migrate up error message improvement

Open
#1,826 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2k
Forks
125
Avg merge
2d 17h
Merged PRs (30d)
32

Description

When I provided a schema name that doesn't exist in the db, it shows `no schema has been selected to create in` (in fact I input the wrong db name). And I really think I use the wrong argument name or something. Can it change to message like `schema doesn't exist in db`? (I know this message comes from psql though :()

Contributor guide

Open the contributing guide

Research direction

Start with the `authgear database migrate up` command and reproduce the failure using a nonexistent schema or database name. Trace where the psql error is surfaced, then make the message distinguish an invalid database or schema; done means the command reports the correct cause instead of `no schema has been selected to create in`.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, postgresql
Domain
cli, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.