diff --git a/docs/auth.md b/docs/auth.md index c884b61a4..495fb5982 100644 --- a/docs/auth.md +++ b/docs/auth.md @@ -103,9 +103,9 @@ An example usage in Go would be: ```go func ShallIPass(ctx context.Context) (string, error) { - principal := ctx.Value(mrfusion.PrincipalKey).(mrfusion.Principal) + principal := ctx.Value(chronograf.PrincipalKey).(chronograf.Principal) if principal != "gandolf@moria.misty.mt" { - return "you shall not pass", mrfusion.ErrAuthentication + return "you shall not pass", chronograf.ErrAuthentication } return "run you fools", nil } diff --git a/server/server.go b/server/server.go index 0cf7e3b69..d71086477 100644 --- a/server/server.go +++ b/server/server.go @@ -110,8 +110,7 @@ func openService(boltPath, cannedPath string, logger chronograf.Logger) Service if err := db.Open(); err != nil { logger. WithField("component", "boltstore"). - Panic("Unable to open boltdb; is there a mrfusion already running?", err) - panic(err) + Panic("Unable to open boltdb; is there a chronograf already running?", err) } apps := canned.NewApps(cannedPath, &uuid.V4{}, logger)