fix: Improve error logs.