From bc95888f5c618e9e09e1179b8e72285ca973518a Mon Sep 17 00:00:00 2001 From: Robert Romero Date: Tue, 9 Sep 2025 16:44:48 -0700 Subject: [PATCH] fix: surface invoice generation errors --- src/slurmcostmanager.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/slurmcostmanager.js b/src/slurmcostmanager.js index 5cae971..afb47e9 100644 --- a/src/slurmcostmanager.js +++ b/src/slurmcostmanager.js @@ -923,7 +923,10 @@ function Details({ } const output = await window.cockpit.spawn( ['python3', `${PLUGIN_BASE}/invoice.py`], - { input: JSON.stringify(invoiceData), err: 'out' } + // Capture stderr as the error message so problems like missing + // Python dependencies surface to the user instead of a generic + // "python3 exited with code 1" message. + { input: JSON.stringify(invoiceData), err: 'message' } ); const trimmed = output.trim(); if (!trimmed) {