mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 05:38:34 +00:00
Revert error message length limitation
This commit is contained in:
parent
87f37e3d87
commit
9b9f031fe1
@ -339,13 +339,9 @@ export function Repl({ embedded = false }) {
|
||||
</section>
|
||||
{panelPosition === 'right' && !isEmbedded && <Footer context={context} />}
|
||||
</div>
|
||||
{error &&
|
||||
(error.message.length < 180 ||
|
||||
(error.message = error.message.slice(0, 150) + ' [...] ' + error.message.slice(-30))) && (
|
||||
<div className="text-red-500 p-4 bg-lineHighlight animate-pulse">
|
||||
{error.message || 'Unknown Error :-/'}
|
||||
</div>
|
||||
)}
|
||||
{error && (
|
||||
<div className="text-red-500 p-4 bg-lineHighlight animate-pulse">{error.message || 'Unknown Error :-/'}</div>
|
||||
)}
|
||||
{panelPosition === 'bottom' && !isEmbedded && <Footer context={context} />}
|
||||
</div>
|
||||
</ReplContext.Provider>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user