Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly show class names #2671

Merged
merged 1 commit into from
Oct 29, 2019
Merged

Conversation

dlackty
Copy link
Contributor

@dlackty dlackty commented Oct 28, 2019

Which issue(s) this PR fixes:

None

What this PR does / why we need it:
We recently encountered a weird error showing that:

value must be a string or a number: (value.class)"

After digging into the source code, I finally realized that I passed nil into the parser but the message was quite confusing.

From my perspective, I thought (value.class) should actually be (#{value.class}), which showed the class name of the value. In my case, it will be (NilClass), which should be clear for users to understand.

Docs Changes:

None

Release Note:

None

Signed-off-by: Richard Lee <[email protected]>
@repeatedly repeatedly merged commit a9ec7fa into fluent:master Oct 29, 2019
@repeatedly
Copy link
Member

Ah, good catch! Thanks.

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

Successfully merging this pull request may close these issues.

3 participants