From e794160ce0a70490b2bf15a682ca709428bfb560 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Tue, 11 Jul 2023 10:37:18 -0400 Subject: [PATCH] Fix typo "occured" => "occurred". --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bba822d0..9b1227af 100644 --- a/README.md +++ b/README.md @@ -527,7 +527,7 @@ To create a synchronous listener: ```js bedrock.events.on('example-module.foo', function(data) { - if(anErrorOccured) { + if(anErrorOccurred) { throw new Error('foo'); } if(shouldCancel) { @@ -691,7 +691,7 @@ logger.info('an info message'); Bedrock provides a number of helpful general purpose utilities. For example, Bedrock defines a `BedrockError` class that extends the default `Error` class. A `BedrockError` can keep track of a series of "causes" (other errors) -that allow developers to better understand why an error occured. +that allow developers to better understand why an error occurred. `BedrockError`s can also be marked as `public`, which allows modules that may, for example, serve error information over the Web to display more error details. `bedrock.util` also contains tools for formatting dates,