Improved the error message for failing to find a sutible function