Fix: Prevent console logging of OperationError

Bumps version to 1.0.0-alpha.4.
This commit is contained in:
SrGooglo 2025-05-11 23:56:23 +00:00
parent 96f51a5bd7
commit fa61273d5b
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "linebridge", "name": "linebridge",
"version": "1.0.0-alpha.3", "version": "1.0.0-alpha.4",
"description": "Multiproposal framework to build fast, scalable, and secure servers.", "description": "Multiproposal framework to build fast, scalable, and secure servers.",
"author": "RageStudio <support@ragestudio.net>", "author": "RageStudio <support@ragestudio.net>",
"bugs": { "bugs": {

View File

@ -90,7 +90,10 @@ class RTEngineNG {
client.error("Event handler not found") client.error("Event handler not found")
} }
} catch (error) { } catch (error) {
console.log(`[ws] 500 /${message?.event ?? "unknown"} >`, error) if (!(error instanceof OperationError)) {
console.log(`[ws] 500 /${message?.event ?? "unknown"} >`, error)
}
client.error(error) client.error(error)
} }
} }