I think it makes more sense to return an error in this case.  I'm not sure if ignoring invalid input is a good idea.