fix non-int error message, fixes https://github.com/aiorazabala/qmethod/issues/1, https://github.com/maxheld83/qmethod-cran/issues/9