MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / getErrorMessage

Function getErrorMessage

packages/kaos/src/ssh.ts:162–167  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

160}
161
162function getErrorMessage(error: unknown): string {
163 if (error instanceof Error) {
164 return error.message;
165 }
166 return String(error);
167}
168
169function mapSftpError(operation: string, error: unknown): KaosSSHError {
170 const code = getErrorCode(error);

Callers 1

mapSftpErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected