From bfbd644613e5371a07c738fc94c48d07d4d815c5 Mon Sep 17 00:00:00 2001 From: tdro Date: Fri, 2 Sep 2022 04:13:56 -0400 Subject: static/js: Use unabbreviated names for catch error variables --- static/js/codecopy.ts | 4 ++-- static/js/timeago.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'static') 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, ); } }, -- cgit v1.2.3