........S. [ZBX-7887] fixed the error messages and changed return value