MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / normalizeErrorCode

Function normalizeErrorCode

src/utils/errorRegistry.js:93–99  ·  view source on GitHub ↗
(errorCode)

Source from the content-addressed store, hash-verified

91});
92
93function normalizeErrorCode(errorCode) {
94 if (errorCode === null || errorCode === undefined) {
95 return null;
96 }
97
98 return String(errorCode).trim().toUpperCase();
99}
100
101export function getErrorMetadata(errorCode) {
102 const normalized = normalizeErrorCode(errorCode);

Callers 2

getErrorMetadataFunction · 0.85
resolveErrorCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected