mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 07:15:23 +02:00
feat(system): path to upgrade swarm to BE [EE-4624] (#8124)
This commit is contained in:
parent
b59a0ba823
commit
db9d87c918
8 changed files with 54 additions and 21 deletions
|
@ -74,3 +74,9 @@ function defaultErrorParser(axiosError: AxiosError) {
|
|||
const error = new Error(message);
|
||||
return { error, details };
|
||||
}
|
||||
|
||||
export function isAxiosError<
|
||||
ResponseType = { message: string; details: string }
|
||||
>(error: unknown): error is AxiosError<ResponseType> {
|
||||
return axiosOrigin.isAxiosError(error);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue