Revert error message length limitation
This commit is contained in:
parent
87f37e3d87
commit
9b9f031fe1
1 changed files with 3 additions and 7 deletions
|
|
@ -339,13 +339,9 @@ export function Repl({ embedded = false }) {
|
||||||
</section>
|
</section>
|
||||||
{panelPosition === 'right' && !isEmbedded && <Footer context={context} />}
|
{panelPosition === 'right' && !isEmbedded && <Footer context={context} />}
|
||||||
</div>
|
</div>
|
||||||
{error &&
|
{error && (
|
||||||
(error.message.length < 180 ||
|
<div className="text-red-500 p-4 bg-lineHighlight animate-pulse">{error.message || 'Unknown Error :-/'}</div>
|
||||||
(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>
|
|
||||||
)}
|
|
||||||
{panelPosition === 'bottom' && !isEmbedded && <Footer context={context} />}
|
{panelPosition === 'bottom' && !isEmbedded && <Footer context={context} />}
|
||||||
</div>
|
</div>
|
||||||
</ReplContext.Provider>
|
</ReplContext.Provider>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue