SWIG: improve error message when generated sources need re-generating