Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix stacktrace formatting

Ammar Ahmed3f1614ab9ac1
diff --git a/apps/mobile/app/app.tsx b/apps/mobile/app/app.tsx
index 5329b3bbc..1fa18701b 100644
--- a/apps/mobile/app/app.tsx
+++ b/apps/mobile/app/app.tsx
@@ -69,7 +69,6 @@ const App = () => {
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
-
return (
<View
style={{
diff --git a/apps/mobile/app/components/exception-handler/index.tsx b/apps/mobile/app/components/exception-handler/index.tsx
index 051ed7d00..8a4810c63 100644
--- a/apps/mobile/app/components/exception-handler/index.tsx
+++ b/apps/mobile/app/components/exception-handler/index.tsx
@@ -23,10 +23,7 @@ import { SafeAreaProvider, SafeAreaView } from "react-native-safe-area-context";
import { Dialog } from "../dialog";
import { Issue } from "../sheets/github/issue";
-const error = (
- stack: string,
- component: string
-) => `Please let us know what happened. What steps we can take to reproduce the issue here.
+const error = (stack: string, component: string) => `
_______________________________
Stacktrace: In ${component}::${stack}`;
@@ -39,9 +36,9 @@ class ExceptionHandler extends React.Component<{
error: Error | null;
hasError: boolean;
} = {
- hasError: false,
- error: null
- };
+ hasError: false,
+ error: null
+ };
static getDerivedStateFromError(error: Error) {
return { hasError: true, error: error };
}
diff --git a/apps/mobile/app/components/sheets/migrate/index.tsx b/apps/mobile/app/components/sheets/migrate/index.tsx
index f7af246ea..42d084311 100644
--- a/apps/mobile/app/components/sheets/migrate/index.tsx
+++ b/apps/mobile/app/components/sheets/migrate/index.tsx
@@ -42,10 +42,7 @@ import { ProgressBarComponent } from "../../ui/svg/lazy";
import Paragraph from "../../ui/typography/paragraph";
import { Issue } from "../github/issue";
-export const makeError = (
- stack: string,
- component: string
-) => `Please let us know what happened. What steps we can take to reproduce the issue here.
+export const makeError = (stack: string, component: string) => `
_______________________________
Stacktrace: In ${component}::${stack}`;