Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Confusing error message when calling with incorrect log level #28

Open
tobiiasl opened this issue Jun 18, 2020 · 1 comment
Open

Confusing error message when calling with incorrect log level #28

tobiiasl opened this issue Jun 18, 2020 · 1 comment
Labels

Comments

@tobiiasl
Copy link

When calling minlog e.g. like this:

  logger.log('foo');

there will be an error thrown stating:
Error: Unknown level name . Known: time,fatal,verbose,silly,emergency,alert,critical,error,warning,notice,informational,debug,warn,info,trace.

The log level used is not specified in the error message (which seems to be the intention).

image

@tobiiasl tobiiasl added the bug label Jun 18, 2020
andreineculau added a commit to ysoftwareab/minlog that referenced this issue Jun 25, 2020
@andreineculau
Copy link
Contributor

@tobiiasl using 0.8.7 (latest)? i added a test, but it I don't see the missing "foo" (level name)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants