Revert error message length limitation

This commit is contained in:
Alexandre G.-Raymond 2023-10-21 23:41:56 +02:00
parent 87f37e3d87
commit 9b9f031fe1
No known key found for this signature in database
GPG Key ID: 97BA9F51695B5C7B

View File

@ -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>