aboutsummaryrefslogtreecommitdiffgithub
diff options
context:
space:
mode:
authorAustin Adams <git@austinjadams.com>2019-01-22 12:31:15 -0500
committerAustin Adams <git@austinjadams.com>2019-01-22 12:31:15 -0500
commit5417d8bf0dc0f51b73c46558c9a8638a5df5a554 (patch)
tree769c504704d5a102191df2d3799dda33a1d3873f
parent867513d0d883ad504144733deda52e3f78e40c67 (diff)
downloadnovice-5417d8bf0dc0f51b73c46558c9a8638a5df5a554.tar.gz
novice-5417d8bf0dc0f51b73c46558c9a8638a5df5a554.tar.xz
Use more intuitive error message for unstepping too far
-rw-r--r--novice/simulator/simulator.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/novice/simulator/simulator.ts b/novice/simulator/simulator.ts
index 707266a..b7da969 100644
--- a/novice/simulator/simulator.ts
+++ b/novice/simulator/simulator.ts
@@ -130,7 +130,7 @@ class Simulator {
const logEntry = this.log.pop();
if (!logEntry) {
- throw new Error('log is empty');
+ throw new Error('already at the beginning of time');
}
for (let i = logEntry.deltas.length - 1; i >= 0; i--) {