Skip to content

Commit

Permalink
Report error in parsing version number
Browse files Browse the repository at this point in the history
  • Loading branch information
squadette committed Feb 7, 2018
1 parent 7923549 commit 8698c96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/react_on_rails/version_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def relative_path?
def major_minor_patch
return if relative_path?
match = raw.match(MAJOR_MINOR_PATCH_VERSION_REGEX)
unless match
raise "Cannot parse version number '#{raw}' (wildcard versions are not supported)"
end
[match[1], match[2], match[3]]
end

Expand Down

0 comments on commit 8698c96

Please sign in to comment.