Skip to content

Commit

Permalink
controllers/main.go: tickets rpc error page (decred#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGruffins authored and UferePease committed Aug 20, 2019
1 parent 41b136a commit 5e4807e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions controllers/main.go
Expand Up @@ -1840,10 +1840,8 @@ func (controller *MainController) Tickets(c web.C, r *http.Request) (string, int
spui, err := controller.ControllerParams.StakepooldServers.StakePoolUserInfo(multisig.String())
if err != nil {
// Render page with message to try again later
log.Infof("RPC StakePoolUserInfo failed: %v", err)
session.AddFlash("Unable to retrieve voting service user info", "main")
c.Env["Flash"] = session.Flashes("main")
return controller.Parse(t, "main", c.Env), http.StatusInternalServerError
log.Errorf("RPC StakePoolUserInfo failed: %v", err)
return "/error", http.StatusSeeOther
}

log.Debugf(":: StakePoolUserInfo (msa = %v) execution time: %v",
Expand Down

0 comments on commit 5e4807e

Please sign in to comment.