mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-17 17:35:17 +00:00
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.
This commit is contained in:
@@ -59,7 +59,8 @@ export const getUpdateData = async (): Promise<IUpdateData> => {
|
|||||||
let currentDigest: string;
|
let currentDigest: string;
|
||||||
try {
|
try {
|
||||||
currentDigest = await getServiceImageDigest();
|
currentDigest = await getServiceImageDigest();
|
||||||
} catch {
|
} catch (error) {
|
||||||
|
console.error(error);
|
||||||
// Docker service might not exist locally
|
// Docker service might not exist locally
|
||||||
// You can run the # Installation command for docker service create mentioned in the below docs to test it locally:
|
// You can run the # Installation command for docker service create mentioned in the below docs to test it locally:
|
||||||
// https://docs.dokploy.com/docs/core/manual-installation
|
// https://docs.dokploy.com/docs/core/manual-installation
|
||||||
|
|||||||
Reference in New Issue
Block a user