Skip to content

Commit

Permalink
add better err msg to distinguish which instance is invalid in POST /…
Browse files Browse the repository at this point in the history
…sync
  • Loading branch information
DocSavage committed Mar 15, 2024
1 parent de0ae1d commit 1a26f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datastore/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func SetSyncByJSON(d dvid.Data, uuid dvid.UUID, replace bool, in io.ReadCloser)
for _, name := range syncedNames {
data, err := GetDataByUUIDName(uuid, dvid.InstanceName(name))
if err != nil {
return err
return fmt.Errorf("issue with requested sync name %q: %v", name, err)
}
syncs[data.DataUUID()] = struct{}{}
}
Expand Down

0 comments on commit 1a26f7f

Please sign in to comment.