Function error not recognised as TypeError