Fixing errors in mongo document tab (#58)

* This fixes an issue where errors when editing documents in an API for MongoDB endpoint would not be presented in the UI.

* Changing null to undefined in several places

* Fixed style issue.
Unignored MongoProxyClient.ts from full lint

* More linter issues since the removal from lint ignore
This commit is contained in:
vchske
2020-06-29 16:02:31 -07:00
committed by GitHub
parent 8200cc521f
commit dd199e6565
3 changed files with 26 additions and 44 deletions

View File

@@ -177,10 +177,9 @@ export default class MongoDocumentsTab extends DocumentsTab implements ViewModel
);
},
reason => {
this.isExecutionError(true);
const message = ErrorParserUtility.parse(reason)[0].message;
window.alert(message);
this.isExecutionError(true);
console.error(reason);
TelemetryProcessor.traceFailure(
Action.UpdateDocument,
{