aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/migrations.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-08-13 20:49:30 +0800
committerGitHub <noreply@github.com>2023-08-13 20:49:30 +0800
commit82ea557dd37312af02b991069e2debb71721882b (patch)
tree70de5e1099d2cd43ef2861c00bced7dc67e45a7c /models/migrations/migrations.go
parentca74b074ea84dea1c37f7bd04b299de602e57e8c (diff)
downloadgitea-82ea557dd37312af02b991069e2debb71721882b.tar.gz
gitea-82ea557dd37312af02b991069e2debb71721882b.zip
Fix stderr usages (#26477)
Diffstat (limited to 'models/migrations/migrations.go')
-rw-r--r--models/migrations/migrations.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go
index b2140a1eb1..55107439b0 100644
--- a/models/migrations/migrations.go
+++ b/models/migrations/migrations.go
@@ -7,7 +7,6 @@ package migrations
import (
"context"
"fmt"
- "os"
"code.gitea.io/gitea/models/migrations/v1_10"
"code.gitea.io/gitea/models/migrations/v1_11"
@@ -608,8 +607,7 @@ Please try upgrading to a lower version first (suggested v1.6.4), then upgrade t
if !setting.IsProd {
msg += fmt.Sprintf("\nIf you are in development and really know what you're doing, you can force changing the migration version by executing: UPDATE version SET version=%d WHERE id=1;", minDBVersion+len(migrations))
}
- _, _ = fmt.Fprintln(os.Stderr, msg)
- log.Fatal(msg)
+ log.Fatal("Migration Error: %s", msg)
return nil
}