mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-12 03:28:20 +08:00
[fix] recover initial MCP signaling connections and preserve failure reasons
This commit is contained in:
1 parent
09ef60dc6f
commit
2535a04d2b
10 files changed
+83
-17
No files matched your search
@@ -201,6 +201,7 @@ async function main() {
|
||||
});
|
||||
}
|
||||
main().catch((error) => {
|
||||
process.stderr.write(`crossdesk-mcp: ${failure(error).code}\n`);
|
||||
const result = failure(error);
|
||||
process.stderr.write(`crossdesk-mcp: ${result.code}${result.reason ? ` (${result.reason})` : ""}\n`);
|
||||
process.exitCode = 1;
|
||||
});
|
||||
Reference in new issue
Block a user