diff --git a/lib/database.json b/lib/database.json index 9c30bd1..c5efe81 100644 --- a/lib/database.json +++ b/lib/database.json @@ -42,9 +42,9 @@ { "name": "RangeError: Maximum call stack size exceeded", "match": "Maximum call stack size exceeded", - "explanation": "Your code is stuck in an infinite loop.", - "why": "A recursive function is calling itself without stopping.", - "fixes": ["Check recursion exit conditions", "Check while loops"], + "explanation": "The call stack limit was reached due to excessive recursion or a very deep call chain.", + "why": "A recursive function is calling itself too many times without hitting a base case, or a chain of function calls builds up too deeply.", + "fixes": ["Check recursion exit conditions", "Verify recursive base cases are reachable", "Check call-chain depth and stack-building loops"], "example": "function run() { if (done) return; run(); }" }, { @@ -221,7 +221,7 @@ "explanation": "The data you sent is too big for the server.", "why": "Usually an image or file that exceeds the body-parser limit.", "fixes": ["Increase limit: app.use(express.json({limit: '50mb'}))"], - "example": "app.use(express.limit('10mb'));" + "example": "app.use(express.json({ limit: '10mb' }));" }, { "name": "TypeError: Cannot set property of null",