| Index: service/datastore/index.go
|
| diff --git a/service/datastore/index.go b/service/datastore/index.go
|
| index 4c2af0779146b8fe8d2827f90efcf2efe4e4c914..d06bd9067f2a9f06991ca6559c3a4745896c7f15 100644
|
| --- a/service/datastore/index.go
|
| +++ b/service/datastore/index.go
|
| @@ -24,6 +24,7 @@ type IndexColumn struct {
|
| // `+Field` is invalid. `` is invalid.
|
| func ParseIndexColumn(spec string) (IndexColumn, error) {
|
| col := IndexColumn{}
|
| + spec = strings.TrimSpace(spec)
|
| if strings.HasPrefix(spec, "-") {
|
| col.Descending = true
|
| col.Property = strings.TrimSpace(spec[1:])
|
| @@ -33,7 +34,7 @@ func ParseIndexColumn(spec string) (IndexColumn, error) {
|
| col.Property = strings.TrimSpace(spec)
|
| }
|
| if col.Property == "" {
|
| - return col, fmt.Errorf("datastore: empty order")
|
| + return col, fmt.Errorf("datastore: empty order: %q", spec)
|
| }
|
| return col, nil
|
| }
|
|
|