mirror of
https://github.com/goharbor/harbor
synced 2024-09-20 17:25:32 +00:00
Modify the error message when adding members
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
This commit is contained in:
parent
481bdb01a2
commit
b866344310
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue
Block a user