Skip to content

Commit

Permalink
Update src/fsrs/algorithm.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Luc Mcgrady <[email protected]>
  • Loading branch information
ishiko732 and Luc-Mcgrady authored Jan 6, 2025
1 parent 735dffc commit 552fbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fsrs/algorithm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class FSRSAlgorithm {
}
}
if (d < 1 || s < 0.01) {
throw new Error('invalid memory state')
throw new Error(`Invalid memory state { difficulty: ${d}, stability: ${s} }`)
}
const r = this.forgetting_curve(t, s)
const s_after_success = this.next_recall_stability(d, s, r, g)
Expand Down

0 comments on commit 552fbfb

Please sign in to comment.