Skip to content

Commit

Permalink
add filepath setting
Browse files Browse the repository at this point in the history
  • Loading branch information
kristojorg committed Jan 14, 2025
1 parent 50047cc commit cf99781
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ export class Cursor extends Effect.Service<Cursor>()("Cursor ", {

const initialValue = yield* fs.readFileString(labelerCursorFilepath).pipe(
Effect.flatMap(decodeCursor),
Effect.tap((cursor) => Effect.log(`Loaded cursor from file: ${cursor}`)),
Effect.tap((cursor) =>
Effect.log(
`Loaded cursor from file ${labelerCursorFilepath}: ${cursor}`,
)
),
Effect.catchTag("SystemError", noFileFallback),
)

Expand Down

0 comments on commit cf99781

Please sign in to comment.