Using proper error field for warning
Merge pull request #1799 from RyzacInc/FixUsingProperErrorField

Using proper error field for warning