Log error as string