Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controllers/main.go: tickets rpc error page #483

Merged
merged 2 commits into from Aug 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions controllers/main.go
Expand Up @@ -1854,10 +1854,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