Providing the source

enolib does not know where your content comes from (which file, input field, url, etc.), this is however a vital piece of information for good error messages, and so it is highly recommended to provide a source string which enolib includes in all error messages it creates:

const document = enolib.parse(input, { source: 'a/path/example.eno' });

Next page: Localized errors