Repository navigation
fix: throw better error on getPath('logs') - #19545
Conversation
MarshallOfSound
left a comment
There was a problem hiding this comment.
We discussed this a bit in slack with @ckerr but instead of throwing an error where the get fails for logs, can we just set it to the default then return it again?
|
I'm of two minds about this:
Maybe we could keep the side-effect for 6 to keep apps from breaking in the short term, but deprecate the behavior and require users of 7 (or 8, if we're being strict on the deprecation protocol) to call |
As an opposite take, an API returning a file path that doesn't exist isn't great either 🤷♂ |
the requested changes will land to master in a follow up, this is just a backport of an already landed PR
|
Release Notes Persisted
|
Backport of .#19514.
See that PR for more details.
Notes:
getPath('logs')now throws better error when it fails to find the logs path.