lib/dotenv/parser.rb in dotenv-2.1.0 vs lib/dotenv/parser.rb in dotenv-2.1.1

- old
+ new

@@ -53,13 +53,13 @@ if (match = line.match(LINE)) key, value = match.captures @hash[key] = parse_value(value || "") elsif line.split.first == "export" if variable_not_set?(line) - fail FormatError, "Line #{line.inspect} has an unset variable" + raise FormatError, "Line #{line.inspect} has an unset variable" end elsif line !~ /\A\s*(?:#.*)?\z/ # not comment or blank line - fail FormatError, "Line #{line.inspect} doesn't match format" + raise FormatError, "Line #{line.inspect} doesn't match format" end end def parse_value(value) # Remove surrounding quotes