veyron.io/veyron/veyron/services/identity/identityd: Convert to use verror2
The change updates
veyron.io/veyron/veyron/services/identity/identityd/main.go
to use verror2 instead of verror.
The import statement renames verror2 to verror so that when we finally remove
verror and rename verror2 to verror, the change will be easy.
Change-Id: Ifa72834b2df3f5486a2f2e7bb0d1a63998d56a04
diff --git a/services/identity/identityd/main.go b/services/identity/identityd/main.go
index 58a5a75..353617a 100644
--- a/services/identity/identityd/main.go
+++ b/services/identity/identityd/main.go
@@ -21,7 +21,7 @@
"veyron.io/veyron/veyron2/options"
"veyron.io/veyron/veyron2/rt"
"veyron.io/veyron/veyron2/security"
- "veyron.io/veyron/veyron2/verror"
+ verror "veyron.io/veyron/veyron2/verror2"
"veyron.io/veyron/veyron2/vlog"
"veyron.io/veyron/veyron/lib/signals"
@@ -180,7 +180,7 @@
if invoker := d[suffix]; invoker != nil {
return invoker, allowEveryoneAuthorizer{}, nil
}
- return nil, nil, verror.NoExistf("%q is not a valid suffix at this server", suffix)
+ return nil, nil, verror.Make(verror.NoExist, nil, suffix)
}
// Starts the blessing services and the discharging service on the same port.