diff --git a/trealla/query.go b/trealla/query.go index b509391..3335d5f 100644 --- a/trealla/query.go +++ b/trealla/query.go @@ -138,12 +138,7 @@ func (pl *prolog) start(ctx context.Context, goal string, options ...QueryOption if err == nil { q.push(ans) } else { - if IsFailure(err) { - q.setError(err) - } else { - q.setError(fmt.Errorf("trealla: failed to parse query response: %w", err)) - } - + q.setError(err) } return q } @@ -193,12 +188,7 @@ func (q *query) redo(ctx context.Context) bool { case IsFailure(err): return false case err != nil: - if !IsFailure(err) { - q.setError(fmt.Errorf("trealla: failed to parse query response: %w", err)) - } else { - q.setError(err) - } - + q.setError(err) return false } q.push(ans) diff --git a/trealla/tpl.wasm b/trealla/tpl.wasm index 7a0e759..f62025c 100755 Binary files a/trealla/tpl.wasm and b/trealla/tpl.wasm differ diff --git a/wapm.lock b/wapm.lock index 93d016b..5e86a45 100644 --- a/wapm.lock +++ b/wapm.lock @@ -1,18 +1,18 @@ # Lockfile v4 # This file is automatically generated by Wapm. # It is not intended for manual editing. The schema of this file may change. -[modules."guregu/trealla"."0.9.20".tpl] +[modules."guregu/trealla"."0.9.21".tpl] name = "tpl" -package_version = "0.9.20" +package_version = "0.9.21" package_name = "guregu/trealla" -package_path = "guregu/trealla@0.9.20" -resolved = "https://registry-cdn.wapm.io/packages/guregu/trealla/trealla-0.9.20.tar.gz" +package_path = "guregu/trealla@0.9.21" +resolved = "https://registry-cdn.wapm.io/packages/guregu/trealla/trealla-0.9.21.tar.gz" resolved_source = "registry+tpl" abi = "wasi" source = "tpl.wasm" [commands.tpl] name = "tpl" package_name = "guregu/trealla" -package_version = "0.9.20" +package_version = "0.9.21" module = "tpl" is_top_level_dependency = true