Error object to string

Signed-off-by: Mario Kozjak <kozjakm1@gmail.com>