spelling: occurred

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref committed 2021-07-13 09:40:16 -04:00
1 parent 73eafdf1b1
commit e26fee235f
1 file changed
+2 -2
@@ -49,7 +49,7 @@ import { docsUrl } from "../../../common/vars";
function getMessageFromError(error: any): string {
if (!error || typeof error !== "object") {
return "an error has occured";
return "an error has occurred";
}
if (error.message) {
@@ -63,7 +63,7 @@ function getMessageFromError(error: any): string {
const rawMessage = String(error);
if (rawMessage === String({})) {
return "an error has occured";
return "an error has occurred";
}
return rawMessage;