refactor(es_extended/server/classes/player.lua): xPlayer.canCarryItem - Error handling - Item not found #563
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recently came across a guy in my community who tried to use this function, but he got this error.
![Error Image](https://camo.githubusercontent.com/acbac6149018f8240dea482dac6ae4717ca90031dff144cdeec62b253d0f0ec7/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f3830363838383334303131363037383631322f313032393338343730303735353732323239302f756e6b6e6f776e2e706e67)
Obviously, this is not that helpful and I would presume that it is not the first time someone passed an unknown item into this function and got this error.