From 218e470106e8203aafbfd950e747706bbd326a02 Mon Sep 17 00:00:00 2001 From: Vladislav Veselskiy Date: Tue, 12 Mar 2024 10:31:53 +0300 Subject: [PATCH] Add error message for func saveStruct --- save.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/save.go b/save.go index e4b2b4c..fde35dc 100644 --- a/save.go +++ b/save.go @@ -236,7 +236,7 @@ func saveStruct( if err := SaveRow(ctx, db, row); err != nil { span.RecordError(err) span.SetStatus(codes.Error, err.Error()) - return err + return errors.WithMessagef(err, "Can not execute saveStruct. Got error from SaveRow. ownerId: %d.", ownerId) } return nil