Better error detection in ExternalOutput