Port Dragonfly: __error is not defined in Dragonfly