From d883bd8f1269ccd1792501a42a7cae9f248fb4b2 Mon Sep 17 00:00:00 2001 From: limiting-factor Date: Wed, 1 Jul 2026 15:59:39 +0200 Subject: [PATCH] chore(docs): clarify the bootstrap fatal error message displayed when no config is found (#13268) Refs forgejo/forgejo#5445 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13268 Reviewed-by: Otto --- modules/setting/setting.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/setting/setting.go b/modules/setting/setting.go index bd3dec1f84..e09198b6c7 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -98,7 +98,11 @@ func InitCfgProvider(file string) { func MustInstalled() { if !InstallLock { - log.Fatal(`Unable to load config file for a installed Forgejo instance, you should either use "--config" to set your config file (app.ini), or run "forgejo web" command to install Forgejo.`) + log.Fatal(` +Unable to load a config file for an installed Forgejo instance. +If you have installed Forgejo already, you might need to provide the path to your config file via the "--config" option. +If you haven't installed Forgejo already, please run "forgejo web" command first to finish the installation. +`) } }