mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Fix stderr usages (#26477)
This commit is contained in:
		@@ -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
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user