diff options
author | tdro <tdro@noreply.example.com> | 2022-09-02 04:13:56 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-09-02 04:13:56 -0400 |
commit | bfbd644613e5371a07c738fc94c48d07d4d815c5 (patch) | |
tree | 4ba7fd40197cb16f918ca509a3c6eb2d7f70f4b5 /static | |
parent | 86458d0fe0da81b1c8d482ac7850a6b4720349d7 (diff) | |
download | canory-bfbd644613e5371a07c738fc94c48d07d4d815c5.tar.gz canory-bfbd644613e5371a07c738fc94c48d07d4d815c5.tar.bz2 canory-bfbd644613e5371a07c738fc94c48d07d4d815c5.zip |
static/js: Use unabbreviated names for catch error variables
Diffstat (limited to 'static')
-rw-r--r-- | static/js/codecopy.ts | 4 | ||||
-rw-r--r-- | static/js/timeago.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/static/js/codecopy.ts b/static/js/codecopy.ts index 4c22d07..7c47c65 100644 --- a/static/js/codecopy.ts +++ b/static/js/codecopy.ts @@ -11,10 +11,10 @@ }, 3000, ); - } catch (err) { + } catch (error) { console.error( "Error: navigator.clipboard.writeText() failed.", - err, + error, ); } }, diff --git a/static/js/timeago.ts b/static/js/timeago.ts index 2cd72ca..6e56063 100644 --- a/static/js/timeago.ts +++ b/static/js/timeago.ts @@ -26,10 +26,10 @@ if (hours <= 48) { return element.textContent = relative.format(-1 * hours, "hour",); } if (days <= 60) { return element.textContent = relative.format(-1 * days, "day",); } - } catch (err) { + } catch (error) { console.error( "Error: Unable to resolve relative time format!", - err, + error, ); } }, |