Bugfixes related to a dependency’s API changes.

master
Luka Vandervelden 2019-10-19 18:24:38 +02:00
parent ca013e37d8
commit 794ffe16fa
3 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ class Environment
file_path = "#{path}/#{child}" file_path = "#{path}/#{child}"
begin begin
environment = Environment.new SpecParser.parse(file_path).not_nil! environment = Environment.new SpecParser.parse(File.read file_path).not_nil!
rescue e rescue e
STDERR << "error loading #{file_path}: " << e << "\n" STDERR << "error loading #{file_path}: " << e << "\n"
# FIXME: Print stacktrace? Debug mode? # FIXME: Print stacktrace? Debug mode?

View File

@ -302,7 +302,7 @@ class Service
end end
begin begin
specs = SpecParser.parse("#{path}/#{child}").not_nil! specs = SpecParser.parse(File.read "#{path}/#{child}").not_nil!
rescue rescue
next next
end end

View File

@ -64,7 +64,7 @@ class ServiceDefinition
def self.load(path) def self.load(path)
Dir.each_child path do |child| Dir.each_child path do |child|
if child.match /\.spec$/ if child.match /\.spec$/
@@all << ServiceDefinition.new SpecParser.parse("#{path}/#{child}").not_nil! @@all << ServiceDefinition.new SpecParser.parse(File.read "#{path}/#{child}").not_nil!
else else
next next
end end