Minor improvement to error thrown by match()