diff --git a/pkg/datasync/directory.go b/pkg/datasync/directory.go index ea84449..6495121 100644 --- a/pkg/datasync/directory.go +++ b/pkg/datasync/directory.go @@ -54,7 +54,8 @@ func (s *Sync) syncDirectory(ctx context.Context, conn *grpc.ClientConn) error { }) if err := g.Wait(); err != nil { - s.logger.Debug().Err(err).Msg(syncRun) + s.logger.Error().Err(err).Msg(syncRun) + return err } if Has(s.options.Mode, Diff) {