similar to: Customize Errors from method

Displaying 20 results from an estimated 40000 matches similar to: "Customize Errors from method"

2008 Jun 12
1
how do I mock the Rails Logger with should_receive?
Hey Guys, I''m trying to mock the Rails Logger for the following code: ... rescue TimeoutError => error $logger.error("#{self.name} Timeout for #{path}: #{error}") and return rescue SocketError => error $logger.error("#{self.name} SocketError for #{path}: #{error}") and return rescue StandardError => error
2008 Jun 12
1
Does anyone know how to mock the Rails Logger then set expectations with should_receive?
Hey Guys, I''m trying to mock the Rails Logger for the following code: ... rescue TimeoutError => error $logger.error("#{self.name} Timeout for #{path}: #{error}") and return rescue SocketError => error $logger.error("#{self.name} SocketError for #{path}: #{error}") and return rescue StandardError => error
2007 Jun 26
0
ActionMailer testing errors rescue... Net::
I am testing various mails sent by my app (on localhost with Postfix - OS X of course...) no proble when postfix is running.. but if Postfix is not running I don''t have any raised error... I tried using the NET lib... rescue Net::SMTPFatalError, Net::SMTPServerBusy, Net::SMTPUnknownError, Net::SMTPSyntaxError, TimeoutError no matter cannot get an error... any info or link will be
2007 Sep 05
2
how to test timeouts? that #returns deprecation again...
I''m writing quite a few specs lately that use Ruby''s Timeout::timeout functionality, making sure that timeout errors are properly handled and everything flows right when some command line tools timeout. I like being able to use Mocha''s #returns right now to force a method to raise a TimeoutError, but I know that usage is going away at some point. I''d like to
2015 Mar 13
3
Re: Name resolution not working inside virt-customize
On 03/13/2015 12:21 PM, Richard W.M. Jones wrote: > So what's happening is that /etc/resolv.conf in the appliance never > gets created. > Is the /dev/tcp test by IP evidence that the problem goes deeper than name resolution? > Run `./run virt-rescue --network --scratch' on the Ubuntu host and see if: > > - either dhclient or dhcpcd exists in the appliance > >
2015 Mar 13
0
Re: Name resolution not working inside virt-customize
On Fri, Mar 13, 2015 at 12:58:52PM -0400, Lee Revell wrote: > On 03/13/2015 12:21 PM, Richard W.M. Jones wrote: > >So what's happening is that /etc/resolv.conf in the appliance never > >gets created. > > > > Is the /dev/tcp test by IP evidence that the problem goes deeper > than name resolution? > > >Run `./run virt-rescue --network --scratch' on
2007 May 14
2
Timeout message
Anybody seen this message before? I see it over and over in one of my mongrel processes log files. I''ve never seen it before today. /usr/local/bin/mongrel_rails:16Mon May 14 20:44:30 +0000 2007: Error calling Dispatcher.dispatch #<Mongrel::TimeoutError: Mongrel timed out this thread: shutdown>Thread #<Thread:0x2ae6288dbc40 sleep> is too old, killing. Thanks, Pete
1999 Apr 20
0
Network connections/username/password/gid
I'm running Samba 2.0.2 on HP-UX 10.20. Everything seems to work fine, except that sometimes, after an MS Word 97 document has been left open for a while (several hours), trying to save or save as causes Windows (NT 4.0) to pop up a message saying that the network connection has been disconnected, and to reconnect or reinsert the floppy. Generally, clicking "retry" has no
2017 Apr 14
0
Test error: net_connect_ip(127.0.0.1:0) failed: Can't assign requested address
macOS 10.12.4 clang 4.0.0 (official, non apple version) libressl 2.5.3 ... 0 / 11 tests failed /Applications/Xcode.app/Contents/Developer/usr/bin/make check-am make[3]: Nothing to be done for `check-am'. Making check in lib-imap-client for bin in test-imapc-client; do \ if ! ./$bin; then exit 1; fi; \ done Error: net_connect_ip(127.0.0.1:0) failed: Can't assign requested address
2005 Dec 12
4
Rails crashes over night?
I''m running Ruby on Rails on Fedora Core 4 with lighttpd and fastcgi. I also used the login generator (don''t know if relevant). I have the following problem: At day time I work on the server and create/modify ruby files on the server, all pages work fine. Than the next day I want to open de server I get the error at the end of this message (on all pages, including non protected).
2011 Feb 09
0
Mysql2::Error: SAVEPOINT active_record_1 does not exist
Hi, I''m switching the database of a rails 3 app I have developed from postgres to mysql so that I can avail of amazon''s rds. Before I make the change I have been running my test code using mysql on my dev machine with the mysql2 adaptor . My test code is throwing up some errors that I haven''t quite been able to get to the bottom of yet. Basically I have a model that is
2007 May 23
1
Troubleshooting unresponsive mongrel
Hi. I have mongrel 1.0.1 running a really simple application and found to lock up (rarely, but still). There''s nothing in the logs, it just stops responding. When I mongrel_rails stop it, I get lots of entries like: Waiting for 3 requests to finish, could take 60 seconds /usr/lib64/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:675:in `process''
2015 Mar 12
0
Re: Name resolution not working inside virt-customize
On Wed, Mar 11, 2015 at 03:09:56PM -0400, Lee Revell wrote: > On 03/10/2015 05:12 PM, Richard W.M. Jones wrote: > >Just for comparison, libguestfs 1.29.29 on Fedora host, plus > >virt-builder, with a Fedora guest does this: > > > > libguestfs 1.29.29 on a ubuntu 14.04 host with fedora-21 guest seems > have no functioning network, it cannot ping the host. Is there
2015 Mar 13
0
Re: Name resolution not working inside virt-customize
On Fri, Mar 13, 2015 at 11:28:56AM -0400, Lee Revell wrote: > On 03/13/2015 11:13 AM, Richard W.M. Jones wrote: > > > >Yes, the log indicates name resolution not working. Please try the > >diagnosis steps that I outlined in: > > > >https://www.redhat.com/archives/libguestfs/2015-March/msg00075.html > > Sorry, I somehow missed the above message. > > $
2006 Apr 05
0
MS-SQL Server dropping connections
This isnt a rails specific issue, but the way I may try to fix it might be. Im using ms-sql server on 1 windows server 2003 pc, connecting to apache/rails on another. Intermittantly I get the following exception: Execute OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server Connection failure HRESULT error code:0x80020009 Exception occurred.: SELECT * FROM
2008 Apr 15
2
Sage <--> R integration
Hi R-Devel, The Sage project (http://www.sagemath.org) has been working extremely hard for several years to create a viable free open source alternative to Maple, Matlab, Mathematica, and Magma. Numerous users have requested statistical functionality. Though Sage includes scipy and numpy, which have some statistical functionality, we've decided the best longterm solution is to strongly
2002 Jul 05
3
Slowdown and errors
Hi all, I am having some strange problems on a customer site : I am pretty sure I disabled oplocks entirely - I don't like the idea of them, and would rather have stable data. The customer (5-10 users) runs Sage Line 50, and until recently was getting numerous errors within sage. We have temporarily replaced their switch and this has reduced the fatality rate and a few
2010 Jul 16
0
Sage and R (was: Mathematica and R)
Dear David, > I managed to install Sage on Windows (via a Linux VM), but I cannot find any documentation on how to use R from Sage. Maybe I > should use the web interface of Sage to avoid having to install R on the VM. In the Sage command line, you can type sage: r? to get some very basic info, and sage: r.[tab] to get various commands. This part of the interface still needs some
2017 Apr 10
0
2.2.29 failing tests (was: Re: v2.2.29 released)
It's failing tests on CentOS 6, it looks like it's expecting the IMAP server to be running when it isn't, perhaps this test should soft-fail? Making check in lib-imap-client make[2]: Entering directory `/builddir/build/BUILD/dovecot-2.2.29/src/lib-imap-client' for bin in test-imapc-client; do \ if ! ./$bin; then exit 1; fi; \ done Warning: imapc(127.0.0.1:0):
2020 Sep 23
0
Raspberry Pi Version of Samba?
Ha! You're the exception to every rule! That's a sweet setup though! Way cheaper sacrificing a Pi to the god Zeus. LOL. Do go look at XCP-NG, if you're not familiar. Really nice. Open source and free. Cheers! -Greg PRGvs> On 9/22/20 2:14 PM, Gregory Sloop via samba wrote >> As an old sage (curmudgeon if you like) I'd encourage people to really consider if the Pi is