mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-04-16 18:56:08 +00:00
fix: fail app on empty app url before parsing
This commit is contained in:
@@ -47,6 +47,10 @@ func (app *BootstrapApp) Setup() error {
|
|||||||
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.")
|
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.")
|
||||||
|
|
||||||
// get app url
|
// get app url
|
||||||
|
if app.config.AppURL == "" {
|
||||||
|
return fmt.Errorf("app URL cannot be empty, perhaps config loading failed")
|
||||||
|
}
|
||||||
|
|
||||||
appUrl, err := url.Parse(app.config.AppURL)
|
appUrl, err := url.Parse(app.config.AppURL)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user