mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 06:03:45 +01:00
Merge pull request #6456 from pureshine/add-user
Modify the error message when adding members
This commit is contained in:
commit
eeb6d4a9b9
@ -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