Merge pull request #530 from hashicorp/fix-error-object-in-desktop-connect

fix: Display api errors in desktop connect
This commit is contained in:
Susmitha Girumala authored and GitHub committed 2021-04-14 11:39:40 -04:00
commit 6960aaeffc
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@ module.exports = {
const jsonData = jsonify(errorStream);
if (jsonData) {
const error = jsonData.api_error || jsonData.error;
reject(new Error(error));
reject(new Error(error.message));
}
});
});