Skip to content

Don’t raise a hard error if a route is not present. #43

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

Merged
merged 1 commit into from
Apr 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Don’t raise a hard error if a route is not present.
  • Loading branch information
michael-misshore committed Apr 7, 2019
commit 7d0a88a847f01c97eff8bdfaf26137df46441435
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ However, more packages may need to be installed depending on your OS distributio
After reviewing the dependency requirements, add `critical-path-css-rails` to your Gemfile:

```
gem 'critical-path-css-rails', '~> 3.0.0'
gem 'critical-path-css-rails', '~> 3.1.0'
```

Download and install by running:
Expand Down
2 changes: 1 addition & 1 deletion lib/critical_path_css/css_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def fetch_route(route)
if !st.exitstatus.zero? || out.empty? && !err.empty?
STDOUT.puts out
STDERR.puts err
raise "Failed to get CSS for route #{route}\n" \
STDERR.puts "Failed to get CSS for route #{route}\n" \
" with options=#{options.inspect}"
end
out
Expand Down
2 changes: 1 addition & 1 deletion lib/critical_path_css/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module CriticalPathCSS
module Rails
VERSION = '3.0.3'.freeze
VERSION = '3.1.0'.freeze
end
end