mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
spelling: occurred
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
parent
73eafdf1b1
commit
e26fee235f
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user