bridgev2/mxmain: don't suggest using ignore foreign tables flag

This commit is contained in:
Tulir Asokan 2024-08-05 20:06:54 +03:00
commit 8daaabcc01
2 changed files with 0 additions and 2 deletions

View file

@ -710,7 +710,6 @@ func (br *Bridge) LogDBUpgradeErrorAndExit(name string, err error) {
if sqlError := (&sqlite3.Error{}); errors.As(err, sqlError) && sqlError.Code == sqlite3.ErrCorrupt {
os.Exit(18)
} else if errors.Is(err, dbutil.ErrForeignTables) {
br.ZLog.Info().Msg("You can use --ignore-foreign-tables to ignore this error")
br.ZLog.Info().Msg("See https://docs.mau.fi/faq/foreign-tables for more info")
} else if errors.Is(err, dbutil.ErrNotOwned) {
br.ZLog.Info().Msg("Sharing the same database with different programs is not supported")

View file

@ -64,7 +64,6 @@ func (br *BridgeMain) LogDBUpgradeErrorAndExit(name string, err error, message s
if sqlError := (&sqlite3.Error{}); errors.As(err, sqlError) && sqlError.Code == sqlite3.ErrCorrupt {
os.Exit(18)
} else if errors.Is(err, dbutil.ErrForeignTables) {
br.Log.Info().Msg("You can use --ignore-foreign-tables to ignore this error")
br.Log.Info().Msg("See https://docs.mau.fi/faq/foreign-tables for more info")
} else if errors.Is(err, dbutil.ErrNotOwned) {
br.Log.Info().Msg("Sharing the same database with different programs is not supported")