Function: markLocation()

markLocation(message, ...locations): string

mark message with location

Parameters

message: string

origin message

• ...locations: string[]

where error happened

Returns

string

message with location

Examples

markLocation("error", "banana") // "[banana] hello"
markLocation("error", fruit, banana) // "[fruit.banana] error"
markLocation("[banana] error", "fruit") // "[fruit.banana] error"
markLocation("[fruit.banana] error", "favorite") // "[favorite.fruit.banana] error"

Defined in

packages/core/src/utils/error.ts:29