diff --git a/packages/runs/src/state.mjs b/packages/runs/src/state.mjs index af5cc927..0b58f712 100644 --- a/packages/runs/src/state.mjs +++ b/packages/runs/src/state.mjs @@ -66,7 +66,7 @@ function logEntry(line) { // rollback, which skips only lines that aren't JSON. A missing log is empty. // With last, only the newest last well-formed entries are returned. export function readActivationLog(dataRoot, { last } = {}) { - if (last !== undefined && (!Number.isInteger(last) || last < 1)) { + if (last !== undefined && (!Number.isInteger(last) || last < 0)) { throw new RunsError(`last must be a positive integer (got ${JSON.stringify(last)})`); } const state = readStateFile(dataRoot, ACTIVATION_LOG_FILE);