diff --git a/src/kubernetes.ts b/src/kubernetes.ts index 6b966b8..b1ff209 100644 --- a/src/kubernetes.ts +++ b/src/kubernetes.ts @@ -68,8 +68,7 @@ export async function getNodeStats() { metrics, }; } catch (error) { - console.error("Error getting node stats:", error); - throw error; + console.error("Error getting node stats:", error.message); } } @@ -107,13 +106,12 @@ export async function getPodStats() { metrics, }); } catch (error) { - console.error("Error getting pod metrics:", error); + console.error("Error getting pod metrics:", error.message); } } return stats; } catch (error) { - console.error("Error listing pods:", error); - throw error; + console.error("Error listing pods:", error.message); } }