Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/slurmcostmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading