show import/export error

This commit is contained in:
SPRINX0\prochazka
2025-03-04 14:26:11 +01:00
parent 0c104d5d29
commit 257ffa3cc4
4 changed files with 18 additions and 5 deletions

View File

@@ -100,15 +100,15 @@ module.exports = {
},
handle_copyStreamError(runid, { copyStreamError }) {
const { reject, exitOnStreamError } = this.requests[runid];
const { reject, exitOnStreamError } = this.requests[runid] || {};
if (exitOnStreamError) {
reject(copyStreamError);
delete this.requests[runid];
}
},
handle_progress(runid, { progressName, status }) {
socket.emit(`runner-progress-${runid}`, { progressName, status });
handle_progress(runid, { progressName, status, errorMessage }) {
socket.emit(`runner-progress-${runid}`, { progressName, status, errorMessage });
},
rejectRequest(runid, error) {