Skip to content

Commit b443d5c

Browse files
committed
logging error message on failure
1 parent a1c9dde commit b443d5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ app.post('/supercut', (req, res) => {
8484

8585
const child = childProcess.spawn(ffmpegPath, inputs)
8686

87-
child.on('close', (code) => {
88-
console.log(`Process exited with code: ${code}`);
87+
child.on('close', (code, signal) => {
88+
console.log(`Process exited with code: ${code} ${signal}`);
8989
if (code === 0) {
9090
console.log(`FFmpeg finished successfully`);
9191
// res.status(206)

0 commit comments

Comments
 (0)