Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1433 from weaveworks/err
Browse files Browse the repository at this point in the history
Update: Return error for sync unmarshal
  • Loading branch information
squaremo authored Oct 8, 2018
2 parents 018ff62 + ddf50fc commit 04fdaf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions update/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func (spec *Spec) UnmarshalJSON(in []byte) error {
case Sync:
var update ManualSync
if err := json.Unmarshal(wire.SpecBytes, &update); err != nil {
return err
}
spec.Spec = update
case Containers:
Expand Down

0 comments on commit 04fdaf5

Please sign in to comment.