scala-io
scala-io copied to clipboard
Fix acquireFor to not throw errors on resource open
Resource's acquireFor was throwing exceptions like FileNotFound when the resource was opened, even though the contract states that errors would be caught and returned in the resulting either. This change allows acquireFor to fulfill the specified contract.