mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-16 17:59:45 -07:00
7 lines
145 B
JavaScript
7 lines
145 B
JavaScript
/**
|
|
* @param {unknown} error
|
|
*/
|
|
export function getErrorMessage(error) {
|
|
return error instanceof Error ? error.message : "Request failed";
|
|
}
|