fix(query/control): handle flux errors from the table iterator in the controller (#14715)

pull/14725/head
Jonathan A. Sternberg 2019-08-20 12:20:40 -05:00 committed by GitHub
parent 99cebbbdc1
commit b35552721c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -809,6 +809,7 @@ type errorCollectingTableIterator struct {
func (ti *errorCollectingTableIterator) Do(f func(t flux.Table) error) error {
err := ti.TableIterator.Do(f)
if err != nil {
err = handleFluxError(err)
ti.q.addRuntimeError(err)
}
return err