mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
usbboot: Even more logs
Change-type: patch Signed-off-by: Juan Cruz Viotti <juan@balena.io>
This commit is contained in:
parent
ed6fb1888e
commit
dad05b4743
@ -449,11 +449,15 @@ class USBBootAdapter extends EventEmitter {
|
||||
message: 'LIBUSB_TRANSFER_CANCELLED'
|
||||
}, {
|
||||
message: 'LIBUSB_ERROR_NO_DEVICE'
|
||||
}, _.constant(null)).tap((result) => {
|
||||
}, ((error) => {
|
||||
debug(`Swallowed error: ${error.message} ${error.stack}`)
|
||||
return null
|
||||
})).tap((result) => {
|
||||
if (result) {
|
||||
result.close()
|
||||
}
|
||||
}).finally(() => {
|
||||
debug('Reboot delay')
|
||||
return Bluebird.delay(DEVICE_REBOOT_DELAY).then(() => {
|
||||
Reflect.deleteProperty(this.progress, device.raw)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user