Improve the attempted dynamic environment-capture error message