MCPcopy Create free account
hub / github.com/arktypeio/arktype / getLocationsFromError

Function getLocationsFromError

ark/fs/getCurrentLine.ts:189–192  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

187 * Get each error stack frame's location information.
188 */
189const getLocationsFromError = (error: Error): Location[] => {
190 const frames = getFramesFromError(error)
191 return getLocationsFromFrames(frames)
192}
193
194/**
195 * Get first determined location information that appears in the stack of the error.

Callers 1

getLocationFromErrorFunction · 0.85

Calls 2

getFramesFromErrorFunction · 0.85
getLocationsFromFramesFunction · 0.85

Tested by

no test coverage detected