When trying to move or hard link a file across different devices, using :file.make_link or :file.rename, the error shown is cross-domain link.
On Linux, the ln command error in this case is Invalid cross-device link which is clearer. Other languages offering file system manipulation such as Node.js and Python seems to output this same error in this case.
I suggest that the error on Erlang/OTP be renamed from "cross-domain link" to "invalid cross-device link".
For a little bit of context, I am using the Elixir language, and when I encountered this error I struggled a bit to understand what was the error about because of the "cross-domain" word which is strongly related to Cross-origin resource sharing (CORS).
P.S. I have no experience in Erlang, but if this is a matter of search and replace, I am willing to do a pull request if you wish.
Thanks for your report, and sorry for not getting around to it sooner -- we've been very busy with the OTP 26 release. I've fixed it in https://github.com/erlang/otp/pull/7233. :)
When trying to move or hard link a file across different devices, using
:file.make_link
or:file.rename
, the error shown iscross-domain link
.On Linux, the
ln
command error in this case isInvalid cross-device link
which is clearer. Other languages offering file system manipulation such as Node.js and Python seems to output this same error in this case.I suggest that the error on Erlang/OTP be renamed from "cross-domain link" to "invalid cross-device link".
For a little bit of context, I am using the Elixir language, and when I encountered this error I struggled a bit to understand what was the error about because of the "cross-domain" word which is strongly related to Cross-origin resource sharing (CORS).
P.S. I have no experience in Erlang, but if this is a matter of search and replace, I am willing to do a pull request if you wish.