lib/quandl/format/dataset/load.rb in quandl_format-0.1.8 vs lib/quandl/format/dataset/load.rb in quandl_format-0.2.0

- old
+ new

@@ -126,9 +126,10 @@ end def log_yaml_parse_error(node, err) message = "Attribute parse error at line #{ node[:line] + err.line } column #{err.column}. #{err.problem} (#{err.class})\n" message += "Did you forget to delimit the meta data section from the data section with a one or more dashes ('#{SYNTAX[:data]}')?\n" unless node[:attributes] =~ /^-/ + message += "Encountered error while parsing: \n " + node[:attributes].split("\n")[err.line - 1].to_s + "\n" rescue nil message += "--" Quandl::Logger.error(message) end def log_dataset_error( node, err ) \ No newline at end of file