Fixed #1272

Show actual error and show contents of gist
Don't send a duplicate panel of HTML.