diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 27107b27e..6fd0fb999 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -34,3 +34,4 @@ Wails is what it is because of the time and effort given by these great people. * [Tim Kipp](https://github.com/timkippdev) * [Dmitry Gomzyakov](https://github.com/kyoto44) * [Arthur Wiebe](https://github.com/artooro) + * [Ilgıt Yıldırım](https://github.com/ilgityildirim) diff --git a/runtime/store.go b/runtime/store.go index 1da67870b..ff024d7b6 100644 --- a/runtime/store.go +++ b/runtime/store.go @@ -286,5 +286,8 @@ func (s *Store) Update(updater interface{}) { results := reflect.ValueOf(updater).Call(args) // We will only have 1 result. Set the store to it - s.Set(results[0].Interface()) + err = s.Set(results[0].Interface()) + if err != nil && s.errorHandler != nil { + s.errorHandler(err) + } }