File: errors.go

package info (click to toggle)
golang-github-socketplane-libovsdb 0.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,468 kB
  • sloc: makefile: 59; sh: 27
file content (17 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package transaction

import (
	"fmt"

	"github.com/ovn-kubernetes/libovsdb/cache"
)

func newIndexExistsDetails(err cache.ErrIndexExists) string {
	return fmt.Sprintf("operation would cause rows in the \"%s\" table to have identical values (%v) for index on column \"%s\". First row, with UUID %s, was inserted by this transaction. Second row, with UUID %s, existed in the database before this operation and was not modified",
		err.Table,
		err.Value,
		err.Index,
		err.New,
		err.Existing,
	)
}