From: Adam Dickmeiss Date: Tue, 19 Jun 2007 10:16:15 +0000 (+0000) Subject: Display errno information if stylesheet cannot be loaded. X-Git-Tag: PAZPAR2.1.0.0~19 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=4b258418178f7f5cba6a7f13f363817466e83806;p=pazpar2-moved-to-github.git Display errno information if stylesheet cannot be loaded. --- 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; }