Skip to content
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

Fix a glitch on raising exception when source doesn't exist. #125

Merged
merged 1 commit into from
Apr 29, 2015
Merged

Fix a glitch on raising exception when source doesn't exist. #125

merged 1 commit into from
Apr 29, 2015

Conversation

mozamimy
Copy link
Contributor

I found a glitch when source file or directory doesn't exist.

For example, there is a itamae recipe file,

remote_directory "/path/to/destination" do
  source "/path/to/source"
end

When /path/to/source does not exist, itamae says following exception message,

backend.rb:130:in `send_directory': uninitialized constant Itamae::Backend::Base::Error (NameError)

So I fixed the problem by using SourceNotExistError.

@ryotarai
Copy link
Member

Thank you!

ryotarai added a commit that referenced this pull request Apr 29, 2015
Fix a glitch on raising exception when source doesn't exist.
@ryotarai ryotarai merged commit 56e44e8 into itamae-kitchen:master Apr 29, 2015
@ryotarai
Copy link
Member

released v1.2.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants