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 itswisdomagain committed Aug 20, 2019
1 parent 71c17e0 commit 566f509
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions controllers/main.go
Expand Up @@ -1853,10 +1853,8 @@ func (controller *MainController) Tickets(c web.C, r *http.Request) (string, int
spui, err := controller.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 566f509

Please sign in to comment.