From 37b6dff94b002492949479055fa43cc383d31476 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Wed, 22 Nov 2017 13:02:56 +0200 Subject: [PATCH] Enhance ErrorBoundary component with stacktrace + version info --- src/components/ErrorBoundary.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/ErrorBoundary.tsx b/src/components/ErrorBoundary.tsx index 3faf492e..4f0da684 100644 --- a/src/components/ErrorBoundary.tsx +++ b/src/components/ErrorBoundary.tsx @@ -22,8 +22,16 @@ export class ErrorBoundary extends React.Component<{}, { error?: Error }> { if (this.state.error) { return ( -

Something went wrong.

+

Something went wrong...

{this.state.error.message} +

+

+ Stack trace +
{this.state.error.stack}
+
+

+ ReDoc Version: {__REDOC_VERSION__}
+ Commit: {__REDOC_REVISION__}
); }