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.
test: add test for fs.readFile with nonexistent path
3f5b846
this tries to reproduce supermacro#489
can't reproduce here: https://github.com/Schniz/neverthrow/blob/schniz/test-nonexistent-path-in-fs/tests/fs.test.ts can you suggest what I can do to reproduce that? I'm running on MacOS, maybe you're using Windows or Linux and it behaves differently?
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: