The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Exception.cshtml 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @model Teknik.IdentityServer.ViewModels.ErrorViewModel
  2. <script>
  3. var submitErrorReportURL = '@Url.RouteUrl("Error.Action", new { action = "SubmitErrorReport" })';
  4. </script>
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-md-12">
  8. <div class="error-template text-center">
  9. <h1>Unexpected Error</h1>
  10. <div class="error-details">
  11. <p>Uh oh! You aren't supposed to be seeing this. Something went horribly wrong.</p>
  12. <div class="error-actions">
  13. @if (Model != null && Model.Exception != null)
  14. {
  15. <div class="btn btn-primary btn-lg" id="submitErrorReport">
  16. <span class="fa fa-bug"></span>
  17. Submit Bug Report
  18. </div>
  19. }
  20. </div>
  21. @if (Model != null && Model.Exception != null)
  22. {
  23. <br />
  24. <div class="show-more" id="view-details">
  25. <button role="button" class="btn btn-default btn-sm view-details-button" data-toggle="collapse" data-target="#errorMsg">Show Details</button>
  26. </div>
  27. <div class="text-left collapse" id="errorMsg">
  28. <br />
  29. <p>
  30. <b>Exception:</b> @Model.Exception.GetFullMessage(true)
  31. <br/>
  32. <b>Source:</b> @Model.Exception.Source
  33. </p>
  34. <div style="overflow: scroll">
  35. <pre>@Model.Exception.StackTrace</pre>
  36. </div>
  37. </div>
  38. }
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <bundle src="js/error.min.js" append-version="true"></bundle>