Remove test errors from scanner
This commit is contained in:
parent
fa063d3363
commit
25a00e93f1
|
@ -34,15 +34,6 @@ async function _execScan(scanner, scanFunction) {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
scanner.pubsub.publish(EVENT_SCANNER_PROGRESS, {
|
|
||||||
scannerStatusUpdate: {
|
|
||||||
progress: 0,
|
|
||||||
finished: false,
|
|
||||||
success: false,
|
|
||||||
message: 'Dummy error',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
console.log('Calling scan function')
|
console.log('Calling scan function')
|
||||||
await scanFunction()
|
await scanFunction()
|
||||||
console.log('Scan function ended')
|
console.log('Scan function ended')
|
||||||
|
@ -61,16 +52,6 @@ async function _execScan(scanner, scanFunction) {
|
||||||
} photos`,
|
} photos`,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
scanner.pubsub.publish(EVENT_SCANNER_PROGRESS, {
|
|
||||||
scannerStatusUpdate: {
|
|
||||||
progress: 0,
|
|
||||||
finished: false,
|
|
||||||
success: false,
|
|
||||||
message:
|
|
||||||
'Another dummy error, that is very long, and wraps multiple lines. Theirefore it is longer yay',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(`SCANNER ERROR: ${e.message}\n${e.stack}`)
|
console.error(`SCANNER ERROR: ${e.message}\n${e.stack}`)
|
||||||
scanner.pubsub.publish(EVENT_SCANNER_PROGRESS, {
|
scanner.pubsub.publish(EVENT_SCANNER_PROGRESS, {
|
||||||
|
|
Loading…
Reference in New Issue