Handle unexpected string errors

Looks like sometimes VS Code throws strings. For example if ifconfig is
missing.
This commit is contained in:
Asher 2020-03-02 17:19:28 -06:00
parent 79b4c64a03
commit ecac0dd751
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 2 additions and 2 deletions

View File

@ -940,7 +940,7 @@ index 0000000000..eb62b87798
+}
diff --git a/src/vs/server/entry.ts b/src/vs/server/entry.ts
new file mode 100644
index 0000000000..0d7feaa24e
index 0000000000..220a0f4223
--- /dev/null
+++ b/src/vs/server/entry.ts
@@ -0,0 +1,76 @@
@ -951,7 +951,7 @@ index 0000000000..0d7feaa24e
+import { enableCustomMarketplace } from 'vs/server/node/marketplace';
+import { Vscode } from 'vs/server/node/server';
+
+setUnexpectedErrorHandler((error) => logger.warn(error.message));
+setUnexpectedErrorHandler((error) => logger.warn(error instanceof Error ? error.message : error));
+enableCustomMarketplace();
+
+/**