mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 02:24:17 +00:00
added outputServerError
lib
This commit is contained in:
parent
31c2520cf2
commit
f6c1b891df
9
src/lib/outputServerError.js
Normal file
9
src/lib/outputServerError.js
Normal file
@ -0,0 +1,9 @@
|
||||
function outputServerError({
|
||||
message = "Unexpected error",
|
||||
description,
|
||||
ref = "SERVER",
|
||||
}) {
|
||||
console.error(`\n\x1b[41m\x1b[37m🆘 [${ref}] ${message}\x1b[0m ${description ? `\n ${description}` : ""} \n`)
|
||||
}
|
||||
|
||||
module.exports = outputServerError
|
Loading…
x
Reference in New Issue
Block a user