Skip to content

Commit

Permalink
Merge branch 'dev' into cached-no-update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcjohnson authored Dec 10, 2019
2 parents f98a587 + 19fe714 commit bac8532
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
9 changes: 9 additions & 0 deletions dash-renderer/src/components/error/FrontEnd/FrontEndError.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,12 @@
overflow: hidden;
display: inline-block;
}

.dash-be-error__str {
background-color: #fdf3f4;
min-width: 386px;
max-width: 650px;
overflow: auto;
display: inline-block;
white-space: pre-wrap;
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ function UnconnectedErrorContent({error, base}) {
</div>
)}
{/* Backend Error */}
{typeof error.html !== 'string' ? null : (
{typeof error.html !== 'string' ? null : error.html.indexOf(
'<!DOCTYPE HTML'
) === 0 ? (
<div className="dash-be-error__st">
<div className="dash-backend-error">
{/* Embed werkzeug debugger in an iframe to prevent
Expand Down Expand Up @@ -140,6 +142,10 @@ function UnconnectedErrorContent({error, base}) {
/>
</div>
</div>
) : (
<div className="dash-be-error__str">
<div className="dash-backend-error">{error.html}</div>
</div>
)}
</div>
);
Expand Down

0 comments on commit bac8532

Please sign in to comment.