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

include error message when save fails #187479

Merged
merged 1 commit into from
Jul 10, 2023
Merged

include error message when save fails #187479

merged 1 commit into from
Jul 10, 2023

Conversation

sandy081
Copy link
Member

include error message when save fails

@@ -210,7 +210,7 @@ export class ConfigurationEditing {
if ((<FileOperationError>error).fileOperationResult === FileOperationResult.FILE_MODIFIED_SINCE) {
throw this.toConfigurationEditingError(ConfigurationEditingErrorCode.ERROR_CONFIGURATION_FILE_MODIFIED_SINCE, operation.target, operation);
}
throw this.toConfigurationEditingError(ConfigurationEditingErrorCode.ERROR_INTERNAL, operation.target, operation);
throw new ConfigurationEditingError(nls.localize('fsError', "Error while writing to {0}. {1}", this.stringifyTarget(operation.target), error.message), ConfigurationEditingErrorCode.ERROR_INTERNAL);
Copy link
Member

Choose a reason for hiding this comment

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

Just making sure this isn't sent to telemetry, if it is we would get one per language per operation target per error message

Copy link
Member Author

Choose a reason for hiding this comment

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

if it is we would get one per language per operation target per error message

Not sure if I understood this. Why is it one per... ?

Copy link
Member

Choose a reason for hiding this comment

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

The string is reported uniquely, so it's the set of combinations of localized message, operation.target and error.message

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah got it. This caller of this can be API or user. Since user can see this error, it is translated.

@sandy081 sandy081 merged commit ba4564b into main Jul 10, 2023
7 checks passed
@sandy081 sandy081 deleted the sandy081/sole-hamster branch July 10, 2023 15:23
@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants