Skip to content

Commit 0222604

Browse files
committed
minor changes
1 parent 81c3f9d commit 0222604

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

internal/update/errors.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import "errors"
44

55
type ErrorCode string
66

7+
// TODO: add the error to the openAPI spec as an enum
78
const (
89
NoInternetConnection ErrorCode = "NO_INTERNET_CONNECTION"
910
OperationInProgress ErrorCode = "OPERATION_IN_PROGRESS"

internal/update/update.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ func (m *Manager) UpgradePackages(ctx context.Context, pkgs []UpgradablePackage)
153153
for e := range aptEvents {
154154
m.broadcast(e)
155155
}
156-
m.broadcast(NewDataEvent(DoneEvent, "Upgrade completed successfully"))
156+
157+
m.broadcast(NewDataEvent(DoneEvent, "Update completed"))
157158
}()
158159
return nil
159160
}

0 commit comments

Comments
 (0)