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 && !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);
}); });