Skip to content

DotEnvMalformed

[Source]

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.

class val DotEnvMalformed

Public fields

let line_number: USize val

[Source]

The 1-based number of the offending line. Blank and comment lines are counted, so it matches what an editor shows.


Public Functions

string

[Source]

fun box string()
: String iso^

Returns