mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 09:13:21 +00:00
fix: noisy domain expiry checks in monitor editor and missing debuggability (#6637)
Co-authored-by: Frank Elsinga <frank@elsinga.de> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Frank Elsinga
autofix-ci[bot]
parent
e31ef63b01
commit
0eca301181
@@ -1,16 +1,21 @@
|
||||
/**
|
||||
* Error whose message is a translation key.
|
||||
* @augments Error
|
||||
*/
|
||||
class TranslatableError extends Error {
|
||||
/**
|
||||
* Error whose message is a translation key.
|
||||
* @augments Error
|
||||
* Indicates that the error message is a translation key.
|
||||
*/
|
||||
msgi18n = true;
|
||||
|
||||
/**
|
||||
* Create a TranslatableError.
|
||||
* @param {string} key - Translation key present in src/lang/en.json
|
||||
* @param {object} meta Arbitrary metadata
|
||||
*/
|
||||
constructor(key) {
|
||||
constructor(key, meta = {}) {
|
||||
super(key);
|
||||
this.msgi18n = true;
|
||||
this.key = key;
|
||||
this.meta = meta;
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user