Skip to content

Commit

Permalink
Show error message from AKS locations endpoint properly (#5068)
Browse files Browse the repository at this point in the history
* return error message instead of the whole error object

* removed extra space

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
  • Loading branch information
momesgin and Mo Mesgin committed Oct 27, 2023
1 parent 20eeceb commit b9e0111
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ export default Component.extend(ClusterDriver, {
})
}
} catch (error) {
this.send('errorHandler', error);
const err = error.body.message || error.body.code || error.body.error;

this.send('errorHandler', err);
cb(false);
}
},
Expand Down

0 comments on commit b9e0111

Please sign in to comment.