Files
NapCatQQ/.pnpm-store/v3/files/77/e3e58b04516d6f60d5ce6d837d0bb12c6fcad20fefa0f1bdfef3f2e4b973a2e8542fb60dbbfa0930825b847b9b13a7676c62c47a1c4a42c3b8503a91b10577
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

19 lines
589 B
Plaintext

/**
* Prints a warning in the console if it exists.
*
* @param message The warning message.
*/
export default function warning(message: string): void {
/* eslint-disable no-console */
if (typeof console !== 'undefined' && typeof console.error === 'function') {
console.error(message)
}
/* eslint-enable no-console */
try {
// This error was thrown as a convenience so that if you enable
// "break on all exceptions" in your console,
// it would pause the execution at this line.
throw new Error(message)
} catch (e) {} // eslint-disable-line no-empty
}