fix(query): restore error messages in repl (#1936)

Fixes #1932
pull/10616/head
Christopher M. Wolff 2018-12-13 14:11:17 -08:00 committed by GitHub
parent 62469e2acf
commit a28dfe8f79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -429,7 +429,7 @@ func (s *FluxQueryService) Query(ctx context.Context, r *query.Request) (flux.Re
return nil, err
}
if err := CheckError(resp); err != nil {
if err := CheckError(resp, true); err != nil {
return nil, err
}

View File

@ -38,7 +38,7 @@ func (c *Controller) Query(ctx context.Context, req *query.Request) (flux.Query,
// or other problem that the client must fix.
return q, &platform.Error{
Code: platform.EInvalid,
Err: err,
Msg: err.Error(),
}
}