Log error details for build commands.