(code, detail)
| 102 | // errno, a version delta, an entry name); it is redacted + truncated to |
| 103 | // ERROR_MAX by the reporter before it leaves the process. |
| 104 | function _fail(code, detail) { |
| 105 | return Object.freeze({ |
| 106 | ok: false, |
| 107 | code: String(code), |
| 108 | detail: detail == null ? '' : String(detail), |
| 109 | }); |
| 110 | } |
| 111 | |
| 112 | // Compact "CODE: message" rendering of a thrown error for the detail field. |
| 113 | function _errStr(e) { |
no outgoing calls
no test coverage detected