print explicit 404 message
Signed-off-by: Manabu McCloskey <manabu.mccloskey@gmail.com>
This commit is contained in:
parent
c0e9899cd4
commit
5868c6bad6
1 changed files with 2 additions and 0 deletions
|
|
@ -8,6 +8,8 @@ function onClientError(error: Error) {
|
|||
function onServerError(error: Error) {
|
||||
if (error?.cause && JSON.stringify(error.cause).includes("ECONNREFUSED")) {
|
||||
console.error("Connection refused. Is the MCP server running?");
|
||||
} else if (error.message && error.message.includes("404")) {
|
||||
console.error("Error accessing endpoint (HTTP 404)");
|
||||
} else {
|
||||
console.error("Error from MCP server:", error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue