make the port mapping deprecation error message more obvious

Closes #4075