Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove gRPC error code from error notifications #664

Merged
merged 1 commit into from
Dec 6, 2021

Conversation

silvanocerza
Copy link
Contributor

@silvanocerza silvanocerza commented Dec 3, 2021

Compilation error before:
image

Upload error before:
image

Compilation error after:
image

Upload error after:
image

Fixes #151.

@silvanocerza silvanocerza added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Dec 3, 2021
@silvanocerza silvanocerza self-assigned this Dec 3, 2021
@@ -227,11 +229,12 @@ export class CoreServiceImpl extends CoreClientAware implements CoreService {
result.on('end', () => resolve());
});
} catch (e) {
const errorMessage = `Error while burning the bootloader: ${e.details}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know errors are not localized (yet)... but they should..

Maybe we can start adopting i18n for new errors

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@silvanocerza btw the PR is good. 🪄

@silvanocerza silvanocerza force-pushed the scerza/better-errors-notification branch from 372a820 to 55da22d Compare December 3, 2021 16:08
@silvanocerza silvanocerza merged commit 5ddab1d into main Dec 6, 2021
@silvanocerza silvanocerza deleted the scerza/better-errors-notification branch December 6, 2021 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Compilation error: Error: 2 UNKNOWN: exit status 1" error message is unnecessarily cryptic
2 participants