[IMPROVE] error printing for debugging

Signed-off-by: Anastasia Lyupa <anastasiya.lyupa@gmail.com>