Merge pull request #1315 from daslyfe/jade/readableerror
enhancement: make error messages easier to read
This commit is contained in:
commit
6e29210bdc
1 changed files with 5 additions and 1 deletions
|
|
@ -4,5 +4,9 @@ export default function UserFacingErrorMessage(Props) {
|
|||
if (error == null) {
|
||||
return;
|
||||
}
|
||||
return <div className="text-red-500 p-4 bg-lineHighlight animate-pulse">{error.message || 'Unknown Error :-/'}</div>;
|
||||
return (
|
||||
<div className="text-background px-2 py-1 bg-foreground w-full ml-auto">
|
||||
Error: {error.message || 'Unknown Error :-/'}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue