I'm not familiar with Windows but I'm going to assume the OS will at least give you an error. A lot of websites are just blank and/or swallowing errors without giving feedback.
Oh this is true. Rereading your point that an error should be present is something I agree with.
It feels more domain to the browser. Have some sort of required flag.