Improve error message

This commit is contained in:
lash 2025-01-04 20:52:49 +00:00
parent 450dfa02cc
commit 89c21847b9
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -66,7 +66,7 @@ func (ms *MenuStorageService) getOrCreateDb(ctx context.Context, existingDb db.D
connStr = path.Join(connStr, section) connStr = path.Join(connStr, section)
newDb = gdbmstorage.NewThreadGdbmDb() newDb = gdbmstorage.NewThreadGdbmDb()
} else { } else {
return nil, fmt.Errorf("unsupported connection string: %s", ms.conn.String()) return nil, fmt.Errorf("unsupported connection string: '%s'\n", ms.conn.String())
} }
logg.DebugCtxf(ctx, "connecting to db", "conn", connStr) logg.DebugCtxf(ctx, "connecting to db", "conn", connStr)
err = newDb.Connect(ctx, connStr) err = newDb.Connect(ctx, connStr)