This commit is contained in:
tamaina 2023-08-11 10:54:15 +00:00
parent 5428019061
commit f82dfdfbd2
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,8 @@
/*
* SPDX-FileCopyrightText: MomentQYC and other misskey contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
export function ErrorHandling(message: string): Error {
const error = new Error(message);
if (process.env.NODE_ENV === 'production') {