2
Handle error when file does not exist at filepath by tywhang · Pull Request #412...
source link: https://github.com/rails/rails/pull/41283
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Summary
Rails has enforced that all filepaths be absolute and returns an error message that a relative path has been given.
However if the path is actually an absolute path and the file doesn't exist, the error message still states that a relative path has been given.
This PR checks to see if the file is absolute and returns an error if it's actually missing.
Addresses:
#41265
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK