Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions lib/scarpe/wv/web_wrangler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -690,10 +690,17 @@ def promise_redraw

@log.debug("Redraw is now fully up-to-date") if fully_updated?
end.on_rejected do
@log.error "Could not complete JS redraw! #{promise.reason.full_message}"
@log.debug("REDRAW FULLY UP TO DATE BUT JS FAILED") if fully_updated?
begin

rescue Scarpe::JSRuntimeError => e
@log.error "JS runtime error: #{e.full_message}"
rescue Scarpe::JSRedrawError => e
@log.error "JS Redraw failed: #{e.full_message}"
end
# @log.error "Could not complete JS redraw! #{promise.reason.full_message}"
# @log.debug("REDRAW FULLY UP TO DATE BUT JS FAILED") if fully_updated?

raise Scarpe::JSRedrawError, "JS Redraw failed! Bailing!"
# raise Scarpe::JSRedrawError, "JS Redraw failed! Bailing!"

# Later we should figure out how to handle this. Clear the promises and queues and request another redraw?
end
Expand Down