Skip to content

Commit 479f165

Browse files
committed
fix: fail app on empty app url before parsing
1 parent 36c7872 commit 479f165

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal/bootstrap/app_bootstrap.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ func (app *BootstrapApp) Setup() error {
4747
fmt.Println("Tinyauth is moving to an organization! All versions after v5.0.7 will be released under ghcr.io/tinyauthapp/tinyauth. Existing images will continue to work but new features and updates (including security ones) will only be released under the new image path.")
4848

4949
// get app url
50+
if app.config.AppURL == "" {
51+
return fmt.Errorf("app URL cannot be empty, perhaps config loading failed")
52+
}
53+
5054
appUrl, err := url.Parse(app.config.AppURL)
5155

5256
if err != nil {

0 commit comments

Comments
 (0)