lib/adiwg/mdtranslator/readers/mdReaders.rb in adiwg-mdtranslator-2.9.2 vs lib/adiwg/mdtranslator/readers/mdReaders.rb in adiwg-mdtranslator-2.10.0
- old
+ new
@@ -34,16 +34,20 @@
# reader namespace
readerNS = hResponseObj[:readerRequested].dup
readerNS[0] = readerNS[0].upcase
- # reader will return intObj and updated hResponseObj
+ # reader will create and return the intObj
return ADIWG::Mdtranslator::Readers.const_get(readerNS).readFile(file, hResponseObj)
else
- hResponseObj[:readerValidationMessages] << "Requested reader '#{hResponseObj[:readerRequested]}' cannot be found."
+
+ hResponseObj[:readerValidationMessages] << "ERROR: Requested reader '#{hResponseObj[:readerRequested]}' cannot be found."
hResponseObj[:readerValidationPass] = false
+
+ # return empty intObj
return {}
+
end
end
# return reader readme text