Merge pull request #6456 from pureshine/add-user

Modify the error message when adding members
This commit is contained in:
Mia ZHOU 2018-12-06 12:53:44 +08:00 committed by GitHub
commit eeb6d4a9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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") {