mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 02:36:32 +00:00
Fix error message not being shown on write error
Changelog-entry: Fix error message not being shown on write error Change-type: patch
This commit is contained in:
parent
93d319275f
commit
4203296414
@ -227,12 +227,15 @@ export function performWrite(
|
|||||||
!flashResults.cancelled &&
|
!flashResults.cancelled &&
|
||||||
!_.get(flashResults, ['results', 'bytesWritten'])
|
!_.get(flashResults, ['results', 'bytesWritten'])
|
||||||
) {
|
) {
|
||||||
throw errors.createUserError({
|
reject(
|
||||||
|
errors.createUserError({
|
||||||
title: 'The writer process ended unexpectedly',
|
title: 'The writer process ended unexpectedly',
|
||||||
description:
|
description:
|
||||||
'Please try again, and contact the Etcher team if the problem persists',
|
'Please try again, and contact the Etcher team if the problem persists',
|
||||||
code: 'ECHILDDIED',
|
code: 'ECHILDDIED',
|
||||||
});
|
}),
|
||||||
|
);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
resolve(flashResults);
|
resolve(flashResults);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user