ソースを参照

Make exception name nicer

tags/v0.4.5
Adrian Short 6年前
コミット
7349fd6470
2個のファイルの変更2行の追加2行の削除
  1. +1
    -1
      lib/uk_planning_scraper.rb
  2. +1
    -1
      lib/uk_planning_scraper/authority.rb

+ 1
- 1
lib/uk_planning_scraper.rb ファイルの表示

@@ -5,7 +5,7 @@ require 'uk_planning_scraper/northgate'
require 'logger'

module UKPlanningScraper
class SystemNotSupportedError < StandardError
class SystemNotSupported < StandardError
end
class AuthorityNotFound < StandardError


+ 1
- 1
lib/uk_planning_scraper/authority.rb ファイルの表示

@@ -45,7 +45,7 @@ module UKPlanningScraper
when 'northgate'
apps = scrape_northgate(params, options)
else
raise SystemNotSupportedError.new("Planning system not supported for #{@name} at URL: #{@url}")
raise SystemNotSupported.new("Planning system not supported for #{@name} at URL: #{@url}")
end
# Post processing


読み込み中…
キャンセル
保存