Better error message when class has no method, fixes #5