MCPcopy Index your code
hub / github.com/heroku/react-refetch / parse

Function parse

src/utils/errors.js:7–17  ·  view source on GitHub ↗
(cause)

Source from the content-addressed store, hash-verified

5}
6
7function parse(cause) {
8 const { error, message } = cause
9
10 if (error) {
11 return error
12 } else if (message) {
13 return message
14 } else {
15 return ''
16 }
17}

Callers 1

newErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…