]> granicus.if.org Git - php/commitdiff
Improve error messages
authorfoobar <sniper@php.net>
Thu, 19 Feb 2004 01:54:21 +0000 (01:54 +0000)
committerfoobar <sniper@php.net>
Thu, 19 Feb 2004 01:54:21 +0000 (01:54 +0000)
ext/session/session.c

index 27874f72ee9759a6544d8ebfb05f2d231d9e456d..301f8c094808fbf8834b11ccf2a1e70ce7e5edc5 100644 (file)
@@ -705,13 +705,13 @@ static void php_session_initialize(TSRMLS_D)
        int vallen;
 
        if (!PS(mod)) {
-               php_error_docref(NULL TSRMLS_CC, E_ERROR, "Failed to initialize session module.");
+               php_error_docref(NULL TSRMLS_CC, E_ERROR, "No storage module chosen - failed to initialize session.");
                return;
        }
 
        /* Open session handler first */
        if (PS(mod)->s_open(&PS(mod_data), PS(save_path), PS(session_name) TSRMLS_CC) == FAILURE) {
-               php_error_docref(NULL TSRMLS_CC, E_ERROR, "Failed to initialize session module");
+               php_error_docref(NULL TSRMLS_CC, E_ERROR, "Failed to initialize storage module: %s (path: %s)", PS(mod)->s_name, PS(save_path));
                return;
        }