We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Getting ERR_UNHANDLED_REJECTION when using fromPromise to read non-existent files.
` import { readFile } from 'node:fs/promises'; public read(path: string): ResultAsync<string, Error> {
const res = ResultAsync.fromPromise( readFile(path, 'utf8'), (e) => new Error(`cannot read file ${path}`) ) return res }
`
The text was updated successfully, but these errors were encountered:
I am also experiencing this issue. I think this should be addressed. Are you able to reproduce @supermacro ?
Sorry, something went wrong.
No branches or pull requests
Getting ERR_UNHANDLED_REJECTION when using fromPromise to read non-existent files.
`
import { readFile } from 'node:fs/promises';
public read(path: string): ResultAsync<string, Error> {
`
The text was updated successfully, but these errors were encountered: