Exception: NJTransit::GTFSNotImportedError
- Defined in:
- lib/njtransit/error.rb
Overview
GTFS not imported
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(detected_path: nil) ⇒ GTFSNotImportedError
constructor
A new instance of GTFSNotImportedError.
Constructor Details
#initialize(detected_path: nil) ⇒ GTFSNotImportedError
Returns a new instance of GTFSNotImportedError.
41 42 43 44 45 46 47 48 |
# File 'lib/njtransit/error.rb', line 41 def initialize(detected_path: nil) = "GTFS data not found. Run: rake njtransit:gtfs:import[/path/to/bus_data]" if detected_path += "\n\nDetected GTFS files at: #{detected_path}" += "\nHint: rake njtransit:gtfs:import[#{detected_path}]" end super() end |