aboutsummaryrefslogtreecommitdiffstats
path: root/src/rsync/pkg/context/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/rsync/pkg/context/context.go')
-rw-r--r--src/rsync/pkg/context/context.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rsync/pkg/context/context.go b/src/rsync/pkg/context/context.go
index 4b886ec7..35e6c4e2 100644
--- a/src/rsync/pkg/context/context.go
+++ b/src/rsync/pkg/context/context.go
@@ -536,7 +536,13 @@ func waitForDone(ac appcontext.AppContext) {
logutils.Info("Wait for done watcher running..", logutils.Fields{})
count = 0
}
- acStatus, _ := getAppContextStatus(ac)
+ acStatus, err := getAppContextStatus(ac)
+ if err != nil {
+ logutils.Error("Failed to get the app context status", logutils.Fields{
+ "error": err,
+ })
+ return
+ }
if acStatus.Status == appcontext.AppContextStatusEnum.Instantiated ||
acStatus.Status == appcontext.AppContextStatusEnum.InstantiateFailed {
return