(err: Error, path: string | string[])
| 231 | } |
| 232 | |
| 233 | protected warnFailedUpdate(err: Error, path: string | string[]): void { |
| 234 | if (!(err instanceof Error) || !err.message.includes('fetch')) { |
| 235 | this.logger.error(err) |
| 236 | } |
| 237 | this.logger.error( |
| 238 | `Failed to reload ${path}. ` + |
| 239 | `This could be due to syntax errors or importing non-existent ` + |
| 240 | `modules. (see errors above)`, |
| 241 | ) |
| 242 | } |
| 243 | |
| 244 | private updateQueue: Promise<(() => void) | undefined>[] = [] |
| 245 | private pendingUpdateQueue = false |