mirror of
https://github.com/danog/code-server.git
synced 2024-11-27 12:57:13 +01:00
Handle unexpected string errors
Looks like sometimes VS Code throws strings. For example if ifconfig is missing.
This commit is contained in:
parent
79b4c64a03
commit
ecac0dd751
@ -940,7 +940,7 @@ index 0000000000..eb62b87798
|
|||||||
+}
|
+}
|
||||||
diff --git a/src/vs/server/entry.ts b/src/vs/server/entry.ts
|
diff --git a/src/vs/server/entry.ts b/src/vs/server/entry.ts
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000..0d7feaa24e
|
index 0000000000..220a0f4223
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/vs/server/entry.ts
|
+++ b/src/vs/server/entry.ts
|
||||||
@@ -0,0 +1,76 @@
|
@@ -0,0 +1,76 @@
|
||||||
@ -951,7 +951,7 @@ index 0000000000..0d7feaa24e
|
|||||||
+import { enableCustomMarketplace } from 'vs/server/node/marketplace';
|
+import { enableCustomMarketplace } from 'vs/server/node/marketplace';
|
||||||
+import { Vscode } from 'vs/server/node/server';
|
+import { Vscode } from 'vs/server/node/server';
|
||||||
+
|
+
|
||||||
+setUnexpectedErrorHandler((error) => logger.warn(error.message));
|
+setUnexpectedErrorHandler((error) => logger.warn(error instanceof Error ? error.message : error));
|
||||||
+enableCustomMarketplace();
|
+enableCustomMarketplace();
|
||||||
+
|
+
|
||||||
+/**
|
+/**
|
||||||
|
Loading…
Reference in New Issue
Block a user