Browse Source

also show the beta. don't use Translated to have the raw error

master
Gaëtan Renaudeau 7 years ago
parent
commit
f66530414e
  1. 18
      src/components/RenderError.js

18
src/components/RenderError.js

@ -14,7 +14,6 @@ import ExportLogsBtn from 'components/ExportLogsBtn'
import Box from 'components/base/Box'
import Space from 'components/base/Space'
import Button from 'components/base/Button'
import TranslatedError from './TranslatedError'
type Props = {
error: Error,
@ -95,12 +94,21 @@ ${error.stack}
</Box>
<Box my={6}>
<ErrContainer>
<strong>
<TranslatedError error={error} />
</strong>
<div>{error.stack}</div>
<strong>{String(error)}</strong>
<div>{error.stack || 'no stacktrace'}</div>
</ErrContainer>
</Box>
<pre
style={{
position: 'fixed',
bottom: 8,
left: 8,
opacity: 0.2,
fontSize: 10,
}}
>
{__APP_VERSION__}
</pre>
{children}
</Box>
)

Loading…
Cancel
Save