storagenode/storagenodedb: Improve preflight schema error message (#3844)
This commit is contained in:
parent
b3939bc1ba
commit
0a4d253990
@ -292,7 +292,7 @@ func (db *DB) Preflight(ctx context.Context) (err error) {
|
||||
// Preflight stage 1: test schema correctness
|
||||
schema, err := sqliteutil.QuerySchema(ctx, nextDB)
|
||||
if err != nil {
|
||||
return ErrPreflight.Wrap(err)
|
||||
return ErrPreflight.New("%s: schema check failed: %v", dbName, err)
|
||||
}
|
||||
// we don't care about changes in versions table
|
||||
schema.DropTable("versions")
|
||||
|
Loading…
Reference in New Issue
Block a user