From 4b258418178f7f5cba6a7f13f363817466e83806 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 19 Jun 2007 10:16:15 +0000 Subject: [PATCH] Display errno information if stylesheet cannot be loaded. --- src/logic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logic.c b/src/logic.c index 827d947..d14da21 100644 --- a/src/logic.c +++ b/src/logic.c @@ -1,4 +1,4 @@ -/* $Id: logic.c,v 1.45 2007-06-15 19:35:17 adam Exp $ +/* $Id: logic.c,v 1.46 2007-06-19 10:16:15 adam Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -347,7 +347,7 @@ static int prepare_map(struct session *se, struct session_database *sdb) (*m)->next = 0; if (!((*m)->stylesheet = conf_load_stylesheet(stylesheets[i]))) { - yaz_log(YLOG_FATAL, "Unable to load stylesheet: %s", + yaz_log(YLOG_FATAL|YLOG_ERRNO, "Unable to load stylesheet: %s", stylesheets[i]); return -1; } -- 1.7.10.4