diff --git a/ERROR_CODES.md b/ERROR_CODES.md index e037c033..8eac1674 100644 --- a/ERROR_CODES.md +++ b/ERROR_CODES.md @@ -181,7 +181,7 @@ show(new MyComponent()); // Wrong, should not be able to show a controller that ### 1012: `Cannot access private * '*' in class '*' annotated with '*'.` - Runtime: ✅ -- Annotation Processor: ❌aught by the compiler) +- Annotation Processor: ❌ (Caught by the compiler) This error is thrown when the framework tries to access a private field or method. diff --git a/scripts/error-codes.js b/scripts/error-codes.js index 121dceec..e4d25199 100644 --- a/scripts/error-codes.js +++ b/scripts/error-codes.js @@ -22,7 +22,7 @@ for (const property of errorCodesProperties.getKeys()) { await scanCodes('../framework/src/main/java', 'runtime'); await scanCodes('../annotation-processor/src/main/java', 'annotationProcessor'); -const newErrorCodesMd = errorCodesMd.replace(/^### (\d+).*(?:\r?\n)+- Runtime: ..?\r?\n- Annotation Processor: ..?/gm, (match, code) => { +const newErrorCodesMd = errorCodesMd.replace(/^### (\d+).*(?:\r?\n)+- Runtime: .\r?\n- Annotation Processor: ./gmu, (match, code) => { const error = errorCodes[code]; if (error) { error.matched = true;