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:
Alexis Svinartchouk 2020-02-17 18:38:30 +01:00
parent 93d319275f
commit 4203296414

View File

@ -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);
});