aboutsummaryrefslogtreecommitdiff
path: root/static/lib.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-10-10 15:13:46 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2021-10-10 15:13:46 +0200
commit200c0bc92203f2103805f1d09602b02800a8593a (patch)
treea79112bb06a1b759b4f766cb3c62cbd7243c73bc /static/lib.ts
parentDrive popup tabs through javascript. (diff)
downloadcalp-200c0bc92203f2103805f1d09602b02800a8593a.tar.gz
calp-200c0bc92203f2103805f1d09602b02800a8593a.tar.xz
Mostly fix datetime values in frontend.
Diffstat (limited to 'static/lib.ts')
-rw-r--r--static/lib.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/lib.ts b/static/lib.ts
index 35b6f867..26735bd1 100644
--- a/static/lib.ts
+++ b/static/lib.ts
@@ -94,7 +94,7 @@ function parseDate(str: string): Date {
day = +str.substr(8, 2);
break;
default:
- throw 'Bad argument';
+ throw `"${str}" doesn't look like a date/-time string`
}
let date;