erlang / otp

Erlang/OTP
http://erlang.org
Apache License 2.0
11.43k stars 2.96k forks source link

exdev error reported as "cross-domain link" instead of "cross-device link" #7213

Open quentin-bettoum opened 1 year ago

quentin-bettoum commented 1 year ago

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.

jhogberg commented 1 year ago

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. :)