Improve error output for missing port