Skip to content

Commit 49f63b7

Browse files
committed
fix error type.. bad bot
1 parent fb257fc commit 49f63b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/supervisor/src/workerToken.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export function getWorkerToken() {
2020
return token;
2121
} catch (error) {
2222
console.error(`Failed to read worker token from file: ${tokenPath}`, error);
23-
throw new Error(`Unable to read worker token from file: ${error.message}`);
23+
throw new Error(
24+
`Unable to read worker token from file: ${
25+
error instanceof Error ? error.message : "Unknown error"
26+
}`
27+
);
2428
}
2529
}

0 commit comments

Comments
 (0)