setup project, fix type in writeError function
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
"homepage": "https://github.com/marlon-erler/universal-decentralized-network#readme",
|
||||
"dependencies": {
|
||||
"@types/bun": "^1.1.6",
|
||||
"@types/ip": "^1.1.3",
|
||||
"colors": "^1.4.0",
|
||||
"express": "^4.19.2",
|
||||
"ip": "^2.0.1"
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ export function writeStatNumber(label: string, value: number): void {
|
||||
}
|
||||
|
||||
// logging
|
||||
export function writeError(message: string): void {
|
||||
export function writeError(message: any): void {
|
||||
console.log(Colors.bold.red(message));
|
||||
writeToLogFile(message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user