DotEnvMalformed¶
A DotEnvError reported for a line that is neither blank, nor a comment,
nor a NAME=VALUE pair. One such line discards the whole file: no entry
from it reaches the caller, including the entries that did parse.
The offending line is deliberately not carried: a malformed line is often a secret with a formatting mistake, so putting its text in an error puts the secret somewhere it can be printed. Report the number rather than the line.
Public fields¶
let line_number: USize val¶
The 1-based number of the offending line. Blank and comment lines are counted, so it matches what an editor shows.
Public Functions¶
string¶
Returns¶
- String iso^