style
This commit is contained in:
parent
0ddbeab9c1
commit
5428019061
|
|
@ -1,7 +1,7 @@
|
|||
export function ErrorHandling(message: string): Error {
|
||||
const error = new Error(message);
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
error.stack = undefined;
|
||||
}
|
||||
return error;
|
||||
const error = new Error(message);
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
error.stack = undefined;
|
||||
}
|
||||
return error;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
export function ErrorHandling(message: string): Error {
|
||||
const error = new Error(message);
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
error.stack = undefined;
|
||||
}
|
||||
return error;
|
||||
const error = new Error(message);
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
error.stack = undefined;
|
||||
}
|
||||
return error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue