Merge "resources: Improve foreign-resources docs and error messages"