Bugfix: Pass axios error into log call for proxmox. (#2012)

* add error to proxmox api log call

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

Co-authored-by: Thomas Camlong <thomas@ajnart.fr>

---------

Co-authored-by: Thomas Camlong <thomas@ajnart.fr>
This commit is contained in:
Dylan SlatteryandThomas Camlong authored and GitHub committed 2024-04-18 21:07:12 +02:00
1 parent 53d1a57f3d
commit f1dc67f206
1 file changed
+1 -1
@@ -31,7 +31,7 @@ export async function makeProxmoxStatusAPICall(app: ConfigAppType, input: any) {
}) })
.catch((error) => { .catch((error) => {
Consola.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; return null;
}) })