From b370c59184cf0474551ea0ff300a5b9d02fc059e Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Fri, 4 Sep 2020 11:59:58 +0300 Subject: [PATCH] Show a nicer dialog for sync errors. --- src/App.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 8da189e..07a03df 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -22,7 +22,6 @@ import "react-virtualized/styles.css"; // only needs to be imported once import "./App.css"; import ConfirmationDialog from "./widgets/ConfirmationDialog"; -import PrettyError from "./widgets/PrettyError"; import { List, ListItem } from "./widgets/List"; import withSpin from "./widgets/withSpin"; import ErrorBoundary from "./components/ErrorBoundary"; @@ -198,7 +197,7 @@ export default function App() { iconElementRight={ <> {(errors.size > 0) && ( - setErrorsDialog(true)} title="Parse Errors"> + setErrorsDialog(true)} title="Errors"> @@ -211,14 +210,14 @@ export default function App() { } /> setErrorsDialog(false)} onOk={() => setErrorsDialog(false)} >

- This should not happen, please contact developers! + Please contact developers if any of the errors below persist.

{errors.map((error, index) => ( @@ -227,7 +226,7 @@ export default function App() { style={{ height: "unset" }} onClick={() => (window as any).navigator.clipboard.writeText(`${error.message}\n\n${error.stack}`)} > - + {error.message} ))}