From 4441da2754e106d88dffbb6e42a8b7b0fed65253 Mon Sep 17 00:00:00 2001 From: foobar Date: Thu, 19 Feb 2004 01:54:21 +0000 Subject: [PATCH] Improve error messages --- ext/session/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/session/session.c b/ext/session/session.c index 27874f72ee..301f8c0948 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -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; } -- 2.50.1