mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-21 18:26: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 &&
|
||||
!_.get(flashResults, ['results', 'bytesWritten'])
|
||||
) {
|
||||
throw errors.createUserError({
|
||||
title: 'The writer process ended unexpectedly',
|
||||
description:
|
||||
'Please try again, and contact the Etcher team if the problem persists',
|
||||
code: 'ECHILDDIED',
|
||||
});
|
||||
reject(
|
||||
errors.createUserError({
|
||||
title: 'The writer process ended unexpectedly',
|
||||
description:
|
||||
'Please try again, and contact the Etcher team if the problem persists',
|
||||
code: 'ECHILDDIED',
|
||||
}),
|
||||
);
|
||||
return;
|
||||
}
|
||||
resolve(flashResults);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user