try fix youtube download
This commit is contained in:
parent
d3ef8ccd26
commit
f13794f161
1 changed files with 2 additions and 1 deletions
|
|
@ -198,7 +198,8 @@ function App() {
|
|||
clearInterval(interval);
|
||||
} else if (data.status === 'failed') {
|
||||
setStatus('error');
|
||||
setLogs(prev => [...prev, "Error: " + data.error]);
|
||||
const errorMsg = data.error || (data.logs && data.logs.length > 0 ? data.logs[data.logs.length - 1] : "Process failed");
|
||||
setLogs(prev => [...prev, "Error: " + errorMsg]);
|
||||
clearInterval(interval);
|
||||
} else {
|
||||
// Update logs if available
|
||||
|
|
|
|||
Loading…
Reference in a new issue