Skip to content

Commit

Permalink
Merge e0be557 into 9797b47
Browse files Browse the repository at this point in the history
  • Loading branch information
prolink007 committed Sep 20, 2018
2 parents 9797b47 + e0be557 commit 9ac133e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ function parseTimestring (string, returnUnit, opts) {

totalSeconds += getSeconds(value, unit, unitValues)
})
} else {
throw new Error(`The string [${string}] is invalid for timestring`)
}

if (returnUnit) {
Expand Down

0 comments on commit 9ac133e

Please sign in to comment.