Modify the error message when adding members

Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
This commit is contained in:
FangyuanCheng 2018-12-05 09:47:43 +08:00
parent 481bdb01a2
commit b866344310

View File

@ -26,6 +26,9 @@ import { httpStatusCode, AlertType } from './shared.const';
* returns {string}
*/
export const errorHandler = function (error: any): string {
if (typeof error === "string") {
return error;
}
if (error && error._body) {
// treat as string message
if (typeof error._body === "string") {