Sorry about that indeed, anyway like you said, I should be raising errors instead of user warnings in the code and forget about trying to reproduce mgcv behaviour exactly :-)