Skip to content

Commit

Permalink
update trealla, fix noisy error msgs for throw
Browse files Browse the repository at this point in the history
  • Loading branch information
guregu committed Oct 17, 2022
1 parent aca8bce commit 48efd23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
14 changes: 2 additions & 12 deletions trealla/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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)
Expand Down
Binary file modified trealla/tpl.wasm
Binary file not shown.
10 changes: 5 additions & 5 deletions wapm.lock
Original file line number Diff line number Diff line change
@@ -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/[email protected].20"
resolved = "https://registry-cdn.wapm.io/packages/guregu/trealla/trealla-0.9.20.tar.gz"
package_path = "guregu/[email protected].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

0 comments on commit 48efd23

Please sign in to comment.