MCPcopy Create free account
hub / github.com/solana-program/system / getSystemErrorMessage

Function getSystemErrorMessage

clients/js/src/generated/errors/system.ts:62–68  ·  view source on GitHub ↗
(code: SystemError)

Source from the content-addressed store, hash-verified

60}
61
62export function getSystemErrorMessage(code: SystemError): string {
63 if (process.env['NODE_ENV'] !== 'production') {
64 return (systemErrorMessages as Record<SystemError, string>)[code];
65 }
66
67 return 'Error message not available in production bundles.';
68}
69
70export function isSystemError<TProgramErrorCode extends SystemError>(
71 error: unknown,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected