(error, command)
| 36 | } |
| 37 | |
| 38 | function explainMissingTool(error, command) { |
| 39 | if (error.code !== "ENOENT") return error.message; |
| 40 | const tool = ffToolInfo(command); |
| 41 | if (!tool) return error.message; |
| 42 | return `${tool.name} was not found at "${command}". Install FFmpeg or set ${tool.env} before running npm start.`; |
| 43 | } |
| 44 | |
| 45 | function run(command, args, options = {}) { |
| 46 | return new Promise((resolve, reject) => { |
no test coverage detected