Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class library: loadRelative – improve behaviour of error #5744

Merged

Conversation

telephon
Copy link
Member

When a file is unsaved or a path can't be found for other reasons, loadRelative and resolveRelative warn the user. So far, they have thrown an error, but it seems better to warn with more details and bail out instead.

Types of changes

  • New feature
  • Breaking change (possibly)

To-do list

  • Code is tested
  • All tests are passing
  • This PR is ready for review

When a file is unsaved or a path can't be found for other reasons, `loadRelative` and `resolveRelative` warn the user. So far, they have thrown an error, but it seems better to warn with more details and bail out instead.
Copy link
Member

@dyfer dyfer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@dyfer dyfer merged commit f10d5b8 into supercollider:develop Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants