Skip to content

Commit 97b85bd

Browse files
committed
tapdb: wrap error in QueryAssets
This was found in the unit test that will be added in the next commit. We need to wrap database errors in order for us to parse them correctly as database specific typed errors.
1 parent 5d739ba commit 97b85bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tapdb/assets_store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ func fetchAssetsWithWitness(ctx context.Context, q ActiveAssetsStore,
861861
// First, we'll fetch all the assets we know of on disk.
862862
dbAssets, err := q.QueryAssets(ctx, assetFilter)
863863
if err != nil {
864-
return nil, nil, fmt.Errorf("unable to read db assets: %v", err)
864+
return nil, nil, fmt.Errorf("unable to read db assets: %w", err)
865865
}
866866

867867
assetIDs := fMap(dbAssets, func(a ConfirmedAsset) int64 {

0 commit comments

Comments
 (0)