From 86c9a17f8dc15b39ba87f070527d5781fb5d43ba Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Tue, 26 Nov 2024 02:59:16 -0800 Subject: [PATCH] improve message --- .../contrib/void/browser/react/src/util/ErrorDisplay.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/void/browser/react/src/util/ErrorDisplay.tsx b/src/vs/workbench/contrib/void/browser/react/src/util/ErrorDisplay.tsx index 8c34f427..ab11ff18 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/util/ErrorDisplay.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/util/ErrorDisplay.tsx @@ -34,7 +34,8 @@ const getErrorDetails = (error: unknown) => { } // sometimes error is an object but not an Error else if (typeof error === 'object') { - e = new Error('More details below.', { cause: JSON.stringify(error) }) + e = new Error(`The server didn't give a very useful error message. More details below.`, { cause: JSON.stringify(error) }) + } else { e = new Error(String(error))