]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
typo: fix occured -> occurred
authorJakub Ružička <jakub.ruzicka@nic.cz>
Fri, 4 Dec 2020 17:05:44 +0000 (18:05 +0100)
committerJakub Ružička <jakub.ruzicka@nic.cz>
Fri, 4 Dec 2020 17:05:44 +0000 (18:05 +0100)
In English, the final letter is doubled when a word of two or more
syllables has stress on the final syllable so a correct form is
"occurred".

daemon/bindings/impl.c
daemon/lua/sandbox.lua.in
daemon/scripting.rst

index d9ad0774f45089c0baff87253fe02f9f0dd060b2..26b5222d97f09135f31e34f14ba93a86eaed13e7 100644 (file)
@@ -76,7 +76,7 @@ void kr_bindings_register(lua_State *L)
 void lua_error_p(lua_State *L, const char *fmt, ...)
 {
        /* Add a stack trace and throw the result as a lua error. */
-       luaL_traceback(L, L, "error occured here (config filename:lineno is at the bottom, if config is involved):", 0);
+       luaL_traceback(L, L, "error occurred here (config filename:lineno is at the bottom, if config is involved):", 0);
        /* Push formatted custom message, prepended with "ERROR: ". */
        lua_pushliteral(L, "\nERROR: ");
        {
index d9d1bc05b1187fedb65f6b13c0bbb7ae6ee53a01..993f36d5e26dbc65b1d44fd2d4061075f723116c 100644 (file)
@@ -19,7 +19,7 @@ day = 24 * hour
 
 -- Logging
 function panic(fmt, ...)
-        print(debug.traceback('error occured here (config filename:lineno is '
+        print(debug.traceback('error occurred here (config filename:lineno is '
                 .. 'at the bottom, if config is involved):', 2))
         error(string.format('ERROR: '.. fmt, ...), 0)
 end
index 48b4da139129381993b0cb688e2a5165e6805302..629855c0aa509e3a241bf23e448ce243cd0b8d11 100644 (file)
@@ -124,7 +124,7 @@ process for liveliness by connecting to the UNIX socket.
           },
           {
               false,  -- function failed
-              'error occured...',  -- the returned error message
+              'error occurred...',  -- the returned error message
               ['n'] = 2,
           },
           ['n'] = 2,