MCPcopy Create free account
hub / github.com/everx-labs/everdev / error

Method error

src/controllers/contract/param-parser.ts:153–166  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

151 }
152
153 private error(message: string) {
154 const text = this.text
155 const pos = this.pos
156 const start = Math.max(pos - 12, 0)
157 const end = Math.min(pos + 12, text.length)
158 const prefix = start > 0 ? "..." : ""
159 const suffix = end < text.length ? "..." : ""
160 const context = `"${prefix}${text.substring(
161 start,
162 pos,
163 )} -> ${text.substring(pos, end)}${suffix}"`
164
165 return new Error(`${message} at ${context}`)
166 }
167}

Callers 3

expectIfMethod · 0.95
parseComponentsMethod · 0.95
cli.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected