Skip to content

Instantly share code, notes, and snippets.

@lukethacoder
Created May 25, 2021 05:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukethacoder/76961dd0a615c3222972ce0a6cdb9156 to your computer and use it in GitHub Desktop.
Save lukethacoder/76961dd0a615c3222972ce0a6cdb9156 to your computer and use it in GitHub Desktop.
Show the hidden aura based errors within a Salesforce Community (errors are never logged to the console)
/* Allows devs to see errors that probably should be logged to the console but aren't */
.auraErrorBox {
width: 100%;
}
.auraErrorBox > span {
display: flex;
align-items: center;
font-weight: 700;
margin-bottom: 8px;
}
.auraForcedErrorBox {
display: flex !important;
position: fixed;
top: 0;
left: 0;
width: 100%;
background: #ca1736;
padding: 16px;
z-index: 100000000;
color: #ffffff;
font-family: 'Roboto', sans-serif;
font-size: 1rem;
}
#auraErrorMessage {
white-space: break-spaces;
width: 100%;
}
#dismissError {
display: flex;
padding: 0px;
background-color: #ffffff;
width: 36px;
height: 36px;
border: 3px solid #222222;
color: #222222;
justify-content: center;
align-items: center;
font-weight: 700;
font-size: 2rem;
margin-right: 8px;
}
.auraErrorFooter {
margin-top: 8px;
display: flex;
justify-content: flex-end;
}
.auraErrorFooter a {
padding: 4px 12px;
background-color: #ffffff;
border: 3px solid #222222;
color: #222222;
text-transform: uppercase;
font-weight: 700;
font-size: 14px;
}
@lukethacoder
Copy link
Author

sf error message

preview of error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment