Show an error if an invalid network type is used