Skip to content

Commit 3d8b036

Browse files
Merge pull request #43 from mudbugmedia/fix-no-route-error
Don’t raise a hard error if a route is not present.
2 parents 1cc72b9 + 7d0a88a commit 3d8b036

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ However, more packages may need to be installed depending on your OS distributio
2727
After reviewing the dependency requirements, add `critical-path-css-rails` to your Gemfile:
2828

2929
```
30-
gem 'critical-path-css-rails', '~> 3.0.0'
30+
gem 'critical-path-css-rails', '~> 3.1.0'
3131
```
3232

3333
Download and install by running:

lib/critical_path_css/css_fetcher.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def fetch_route(route)
4646
if !st.exitstatus.zero? || out.empty? && !err.empty?
4747
STDOUT.puts out
4848
STDERR.puts err
49-
raise "Failed to get CSS for route #{route}\n" \
49+
STDERR.puts "Failed to get CSS for route #{route}\n" \
5050
" with options=#{options.inspect}"
5151
end
5252
out
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module CriticalPathCSS
22
module Rails
3-
VERSION = '3.0.3'.freeze
3+
VERSION = '3.1.0'.freeze
44
end
55
end

0 commit comments

Comments
 (0)