similar to: how to rescue this exception

Displaying 20 results from an estimated 10000 matches similar to: "how to rescue this exception"

2006 Jun 23
1
Can not rescue ferret exception. What is wrong?
Hi, I have a big index and wildcard query raises an exception. That is all right. The problem is I can not rescue this exception and it bombs right to user page. Why? I am on Linux. Ferret 0.9.3 with C extentions. >> class A >> def self.b >> Book.index.search(''isbn:00*'') >> rescue >> puts ''ok'' >> end >> end =>
2007 Oct 26
5
specing rescue, ensure and else blocks of an Exception
Greetings, I''m using rspec with rcov for my applications and there is one issue which I cannot solve nor can find any proper information regarding it: specing what is in a rescue block in case of an exception. I''m using Ruby on Rails and I usually make use of exceptions in my controllers, like the following example: def action @foo = Foo.find(1)
2013 Nov 12
7
Hook into Exception Chain
Hi there, I''m using Log4r in my rails projects. On log.error an email is sent using the EmailOutputter. I know changed the EmailOutputter to include a global var in the subject (MDC) since the subject is normally static. I want to set this var to the exception message, so it is sent as the subject. Can anyone tell me how to do this in rails? Basically: raise e or some other cause
2013 Dec 10
6
Email out of Rescue
I''m trying to set up a means to automatically send an email from certain parts of troubled code, that is, very often, code that might appear in the Rescue predicate of a begin.....rescue, so as to track down issues remotely. Surely there must be a gem for such? If not, how might one construct something like this in code? TIA, RVic -- You received this message because you are
2016 Mar 24
1
[PATCH 1/2] rescue: Suggest using recursive bind mounts.
Since /dev and other directories contain sub-mounts, suggest using --rbind instead of --bind. This also allows us to remove the /dev/pts line. --- rescue/rescue.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rescue/rescue.c b/rescue/rescue.c index 53afdae..9a7c988 100644 --- a/rescue/rescue.c +++ b/rescue/rescue.c @@ -453,10 +453,9 @@ do_suggestion (struct drv
2005 Aug 03
1
Modify rescue mode boot?
Hi, I have been able to boot with pxe and load linux rescue, it loads loader and ask me lang, keyboard,load base from nfs, etc... then it ask me about mount chroot or skip, I just choose skip to go to shell. What I want is boot in rescue mode and get a shell directly without having to enter lang, keyboard, nfs ip and dir, skip, etc... once booted on shell I want it automatically run a script
2015 Mar 27
2
Re: [virt-tools-list] Statically compiling virt-rescue ?
[Sorry - I didn't see this email until now as virt-rescue is part of the http://libguestfs.org project and so normally uses a different mailing list] On Tue, Mar 17, 2015 at 11:29:29AM +0000, Keith Roberts wrote: > Hi all. > > I’d like to create a statically-linked version of virt-rescue that I > can compile on my laptop then deploy that binary locally onto a xen > server
2018 Mar 02
2
why does "rescue" mode bring me to runlevel 5 (multi-user target)?
finishing a week of teaching a comptia linux+ class off of centos 7.4 and wanted to demo how to boot to "rescue" mode, so i rebooted, selected "rescue" mode at grub menu, which still booted to full multiuser, graphical mode. what am i doing wrong? or is this a dumb question? rday -- ======================================================================== Robert P. J. Day
2007 Aug 14
2
Adding Things to Rescue Mode
I'd like to add a few things to rescue mode. I'm tired of having to use a floppy with hardware drivers when ever I need to go into rescue mode and there are a few other utilities that I'd like to add as well. How would I go about doing this? Any pointers to FAQ's or "How to's"? I've done some searching, but haven't found anything recent enough to be
2015 Aug 23
2
CentOS 7 - Limiting rescue kernel imeges
In order to keep only 3 kernel images on a CentOS 7 I edited /etc/yum.conf and I put installonly_limit=3 This parameter works for standard kernel images, but does not work for rescue images: $ ls -al /boot/vmlinuz* -rwxr-xr-x 1 root root 5027376 May 13 20:46 /boot/vmlinuz-0-rescue-2554e2ffad84452bb07401bed0a61089 -rwxr-xr-x 1 root root 3084288 Jun 27 06:42
2017 Oct 23
1
[PATCH] rescue: initialize CLEANUP pointer variable
This way it will not try to free uninitialized memory when going out of scope, and the inspector mode is not enabled. Fixes commit 3637c42f4e521eb647d7dfae7f48eb1689d0af54. --- rescue/escape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rescue/escape.c b/rescue/escape.c index 3bb69578b..a6af99ae1 100644 --- a/rescue/escape.c +++ b/rescue/escape.c @@ -236,7 +236,7 @@
2014 Dec 02
2
Virt-rescue problem
Hello, I am trying to run this command virt-rescue --suggest -d XYZ virt-rescue --network -d XYZ the prompt is looking like this: I have no name!@(none): now I mounted the root partition suggested by virt-rescue to /sysroot then chroot /sysroot after that I tried to rebuild an initrd.img with the following command update-initramfs -c -k 3.2.0-58-generic But it failed with following error:
2006 Dec 04
2
begin, rescue, end for the whole darn app
Hello. Imagine how paranoid and ugly code would look if one put a ''begin,rescue, end'' in every action in the app... With server, mysql, etc errors, is there a way to rescue anything weird when (not if :( ) it were to ever happen? Thoughts? Dominic -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message
2008 Mar 19
2
rescue
Hi, whats the correct way to spec a rescue? This will raise it but doesnt test my code''s response # controller def edit @foo = Foo.find(params[:id]) rescue flash[:notice] = "Unknown foo #{params[:id]}" redirect_to foos_path end # spec it "should flash error if not found" do Foo.should_receive(:find).and_raise get :edit, :id
2006 May 11
0
rescue action doesn''t catch exception
I define rescue_action_in_public method in my application controller. But it fails to catch any exception thrown. I could catch the exception if i define rescue_action method instead of rescue_action_in_public method. Any idea why? Thanks, Andy. -- Posted via http://www.ruby-forum.com/.
2017 Mar 03
1
[PATCH] rescue: Implement --mount and -i options.
Depends on the previous 5 patches that modified virt-rescue to work without direct mode: https://www.redhat.com/archives/libguestfs/2017-March/msg00017.html Rich.
2006 Nov 02
2
Rescue don't work on web applications
Hi, I''ve a Rails application who starts a Ruby script . The script is made via Web -> database. Than you can select a script to start via a database list. Problem: In case of errors , I like to start a rescue showing the users the problems. render(:text => "<pre>" + CGI::escapeHTML(` begin /home/luc/radrails/cpe/public/startq_test.rb
2015 Aug 24
1
CentOS 7 - Limiting rescue kernel imeges
Nicolas Thierry-Mieg wrote on 24/08/2015 00:24: >> installonly_limit=3 >> >> >> This parameter works for standard kernel images, but does not work for >> rescue images: >> > <snip> >> Is there a way to keep rescue images within a certain limit? > > man yum.conf , search for installonlypkgs (that's on centos6, might vary in 7)
2016 Jul 21
3
[PATCH] appliance: move virt-rescue welcome to /etc/issue
To allow easier downstream tweaks to the virt-rescue welcome message, just output the content of the /etc/issue file in the appliance. Thus, a new extras.tar.gz file appeared in supermin.d containing the etc/issue file and future tweaks like this one. --- appliance/Makefile.am | 11 +++++++++++ appliance/init | 11 ++--------- appliance/issue | 9 +++++++++ 3 files changed, 22
2012 Jan 31
3
rsync from rescue boot
If I boot a 5.7 install disk with 'linux rescue selinux=0', let it start the network and detect the installed system, ssh seems to work, but rsync fails with "rsync: connection unexpectedly closed (0 bytes received so far) [receiver]). Shouldn't it work as long as the underlying ssh connection works? It doesn't prompt for the ssh password and using -essh doesn't change