Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(294)

Unified Diff: state/apiserver/common/errors.go

Issue 102920048: state/*: login to /ENVUUID/api URLs
Patch Set: state/*: login to /ENVUUID/api URLs Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: state/apiserver/common/errors.go
=== modified file 'state/apiserver/common/errors.go'
--- state/apiserver/common/errors.go 2014-05-13 04:30:48 +0000
+++ state/apiserver/common/errors.go 2014-05-26 13:12:05 +0000
@@ -47,6 +47,7 @@
var (
ErrBadId = stderrors.New("id not found")
ErrBadCreds = stderrors.New("invalid entity name or password")
+ ErrInvalidEnviron = stderrors.New("invalid environment requested")
rog 2014/06/02 10:08:18 ErrUnknownEnviron = "unknown environment" ?
jameinel 2014/06/05 13:47:19 I was actually pretty dissatisfied with the static
ErrPerm = stderrors.New("permission denied")
ErrNotLoggedIn = stderrors.New("not logged in")
ErrUnknownWatcher = stderrors.New("unknown watcher id")
@@ -63,6 +64,7 @@
state.ErrUnitHasSubordinates: params.CodeUnitHasSubordinates,
ErrBadId: params.CodeNotFound,
ErrBadCreds: params.CodeUnauthorized,
+ ErrInvalidEnviron: params.CodeUnauthorized,
ErrPerm: params.CodeUnauthorized,
ErrNotLoggedIn: params.CodeUnauthorized,
ErrUnknownWatcher: params.CodeNotFound,

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b