-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Ruby's rescue clause #20
Comments
@mouchtaris Thank you for your feedback! @ihmccreery Perhaps you want to check this out? |
Hi @mouchtaris. Sorry you're having trouble. We're having a bit of a bumpy ride as we move things around in Fog. Can you give more context about how this came up? What code did you try to execute that gave you this error, so I can try to reproduce it? It looks like you were trying to create a disk. What |
Hello. Regardless of the conditions that reproduce this error, this code fragment is invalid Ruby code, and in fact it is not a simple typo. The original purpose of the author is completely unclear, and I think it should be made clear what this code is supposed to do in case of some error before testing how it actually behaves with it. Nevertheless, for me the error is easily reproducible if I pass a
|
I am available for any other enquiry. |
Thanks for the spot & explanation @mouchtaris; I didn't originally see that it's trying to create a new object. It looks like this originally made its way into the codebase in fog/fog@39188c3. I'm continuing my investigation for a fix, but I thought I'd pass along that information at least, since @mouchtaris was wondering what the intent was. |
Okay, I've reproduced the bug. Reverting that block of code to the parent commit fixes it, but, somewhat unrelatedly, the With the reversion, @mouchtaris's code will now give the following:
I will continue work on fixing images to work with the API. |
… make it consistent with desired functionality; closes fog#20
The desired functionality is: if we can't find the disk, it should return |
… make it consistent with desired functionality; closes fog#20
Correction: the current implementation is not broken. See #22 for updates. |
In the following file/commit/line:
1976f5c#commitcomment-10822546
Causes (at least) the following error:
The text was updated successfully, but these errors were encountered: