Skip to content

Commit

Permalink
Bugfix: Pass axios error into log call for proxmox. (ajnart#2012)
Browse files Browse the repository at this point in the history
* add error to proxmox api log call

* Update src/server/api/routers/health-monitoring/proxmox.ts

Co-authored-by: Thomas Camlong <[email protected]>

---------

Co-authored-by: Thomas Camlong <[email protected]>
  • Loading branch information
dslatt and ajnart authored Apr 18, 2024
1 parent 53d1a57 commit f1dc67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/api/routers/health-monitoring/proxmox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function makeProxmoxStatusAPICall(app: ConfigAppType, input: any) {
})
.catch((error) => {
Consola.error(
`'proxmox': Error accessing service API: '${appUrl}'. Please check the configuration.`
`'proxmox': Error accessing service API: '${appUrl}'. The following error was returned: ${error}`
);
return null;
})
Expand Down

0 comments on commit f1dc67f

Please sign in to comment.