Skip to content

Commit ba5e7e2

Browse files
author
Mauricio Siu
committed
fix: improve error handling in getUpdateData function
- Added error logging to the getUpdateData function to capture and display errors when retrieving the current service image digest, enhancing debugging capabilities.
1 parent 8a741e4 commit ba5e7e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/server/src/services/settings.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ export const getUpdateData = async (): Promise<IUpdateData> => {
5959
let currentDigest: string;
6060
try {
6161
currentDigest = await getServiceImageDigest();
62-
} catch {
62+
} catch (error) {
63+
console.error(error);
6364
// Docker service might not exist locally
6465
// You can run the # Installation command for docker service create mentioned in the below docs to test it locally:
6566
// https://docs.dokploy.com/docs/core/manual-installation

0 commit comments

Comments
 (0)