Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Capture Elasticsearch Scroll Error

by Erez (Priest)
on Oct 18, 2016 at 06:51 UTC ( #1174180=note: print w/replies, xml ) Need Help??


in reply to Capture Elasticsearch Scroll Error

Hi,
First off, you'll be better advised to place the error message inside <code></code> tags, as it's horribly hard to read, as well as breaking the entire page.

As for your question, if you are looking into capturing the error, as in "catching" it, either look into eval, or perhaps something more familiar like Try::Tiny

Principle of Least Astonishment: Any language that doesn’t occasionally surprise the novice will pay for it by continually surprising the expert

Replies are listed 'Best First'.
Re^2: Capture Elasticsearch Scroll Error
by perll (Novice) on Oct 18, 2016 at 08:19 UTC
    Hi, Thanks for the suggestion, I updated the post. I tried eval, but that's not working, I will try Try::Tiny and see if that's working and update the same.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1174180]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2017-10-23 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (282 votes). Check out past polls.

    Notices?