mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
fix error description on stats for non-admin users (#5665)
This commit is contained in:
parent
dc769b4c4d
commit
7c9f7a2a8b
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue