Fix Effect test and catch helpers
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
cff8c10d13
commit
91263ff1bf
2 files changed
+2
-1
No files matched your search
@@ -3,6 +3,7 @@ import { assert, it } from "@effect/vitest";
|
||||
import { assertSuccess } from "@effect/vitest/utils";
|
||||
import * as Effect from "effect/Effect";
|
||||
import * as FileSystem from "effect/FileSystem";
|
||||
import * as Layer from "effect/Layer";
|
||||
import * as Path from "effect/Path";
|
||||
import * as Random from "effect/Random";
|
||||
import * as Sink from "effect/Sink";
|
||||
|
||||
@@ -68,7 +68,7 @@ export const make = Effect.fn("makeVcsProjectConfig")(function* () {
|
||||
) {
|
||||
const raw = yield* fileSystem.readFileString(configPath).pipe(
|
||||
Effect.map(Option.some),
|
||||
Effect.catchAll((error) =>
|
||||
Effect.catch((error) =>
|
||||
Effect.logWarning("failed to read VCS project config", {
|
||||
configPath,
|
||||
error,
|
||||
|
||||
Reference in new issue
Block a user