mirror of https://github.com/portainer/portainer
fix error description on stats for non-admin user (#5664)
parent
49d2c68a19
commit
af8065e8c2
|
@ -26,7 +26,9 @@ class KubernetesNodeService {
|
|||
const [details, yaml] = await Promise.all([this.KubernetesNodes().get(params).$promise, this.KubernetesNodes().getYaml(params).$promise]);
|
||||
return KubernetesNodeConverter.apiToNodeDetails(details, yaml);
|
||||
} catch (err) {
|
||||
throw new PortainerError('Unable to retrieve node details', err);
|
||||
// changing the structure of error message to fix [object, Object] issue
|
||||
const errData = err.data;
|
||||
throw new PortainerError('Unable to retrieve node details', errData);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue