We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb257fc commit 49f63b7Copy full SHA for 49f63b7
apps/supervisor/src/workerToken.ts
@@ -20,6 +20,10 @@ export function getWorkerToken() {
20
return token;
21
} catch (error) {
22
console.error(`Failed to read worker token from file: ${tokenPath}`, error);
23
- throw new Error(`Unable to read worker token from file: ${error.message}`);
+ throw new Error(
24
+ `Unable to read worker token from file: ${
25
+ error instanceof Error ? error.message : "Unknown error"
26
+ }`
27
+ );
28
}
29
0 commit comments