* A file the reader cannot show is announced to the frontend log before it * is thrown (provider/error-observer.ts). The /rpc failures underneath * announce themselves; a file the index does not know, or the server's * placeholder for a file gone from disk, is a successful call with nothing * in
(path: string, message: string)
| 83 | * in it, and only this module knows that it is a failure. |
| 84 | */ |
| 85 | function notReadable(path: string, message: string): FileNotReadableError { |
| 86 | reportError({ source: 'reader', level: 'warn', message }); |
| 87 | return new FileNotReadableError(path, message); |
| 88 | } |
| 89 | |
| 90 | function toOptionalNumber(cell: string | undefined): number | undefined { |
| 91 | if (cell === undefined || cell === '') { |
no test coverage detected