summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre.ledru@scilab.org>2011-05-09 20:36:23 +0200
committerVincent COUVERT <vincent.couvert@scilab.org>2011-05-10 10:58:20 +0200
commit0506c1885f79f8cae9579a0df8f5581cf87f1ddc (patch)
treec5697146ac95a8b91122101def83f54057a7f909
parent1461503766e0be2e3818d7acb40cabf4aed853be (diff)
downloadscilab-0506c1885f79f8cae9579a0df8f5581cf87f1ddc.zip
scilab-0506c1885f79f8cae9579a0df8f5581cf87f1ddc.tar.gz
Display more information in case of error
Change-Id: I3100b926d8462eea7a632c8177a020e918e83c94
-rw-r--r--scilab/modules/helptools/sci_gateway/cpp/sci_buildDoc.cpp1
-rw-r--r--scilab/modules/helptools/sci_gateway/cpp/sci_buildDocv2.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/scilab/modules/helptools/sci_gateway/cpp/sci_buildDoc.cpp b/scilab/modules/helptools/sci_gateway/cpp/sci_buildDoc.cpp
index 747b566..e16c58f 100644
--- a/scilab/modules/helptools/sci_gateway/cpp/sci_buildDoc.cpp
+++ b/scilab/modules/helptools/sci_gateway/cpp/sci_buildDoc.cpp
@@ -244,6 +244,7 @@ extern "C"
244 { 244 {
245 Scierror(999,_("%s: Error while building documentation: %s.\n"), fname, ex.getJavaDescription().c_str()); 245 Scierror(999,_("%s: Error while building documentation: %s.\n"), fname, ex.getJavaDescription().c_str());
246 Scierror(999,_("%s: Execution Java stack %s.\n"), fname, ex.getJavaStackTrace().c_str()); 246 Scierror(999,_("%s: Execution Java stack %s.\n"), fname, ex.getJavaStackTrace().c_str());
247 Scierror(999,_("If Scilab is started in a chroot, you might want to try to set the two environment variables: SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1\n"));
247 return FALSE; 248 return FALSE;
248 } 249 }
249 250
diff --git a/scilab/modules/helptools/sci_gateway/cpp/sci_buildDocv2.cpp b/scilab/modules/helptools/sci_gateway/cpp/sci_buildDocv2.cpp
index d06c2e2..7235b6e 100644
--- a/scilab/modules/helptools/sci_gateway/cpp/sci_buildDocv2.cpp
+++ b/scilab/modules/helptools/sci_gateway/cpp/sci_buildDocv2.cpp
@@ -227,7 +227,7 @@ extern "C"
227 { 227 {
228 doc->setWorkingLanguage((char *) language.c_str()); 228 doc->setWorkingLanguage((char *) language.c_str());
229 doc->setExportFormat((char *) exportFormat.c_str()); 229 doc->setExportFormat((char *) exportFormat.c_str());
230 doc->setIsToolbox(Rhs == 4); 230 doc->setIsToolbox(Rhs == 4);
231 doc->process((char *) masterXML.c_str(), (char *) styleSheet.c_str()); 231 doc->process((char *) masterXML.c_str(), (char *) styleSheet.c_str());
232 } 232 }
233 else 233 else
@@ -240,6 +240,7 @@ extern "C"
240 { 240 {
241 Scierror(999,_("%s: Error while building documentation: %s.\n"), fname, ex.getJavaDescription().c_str()); 241 Scierror(999,_("%s: Error while building documentation: %s.\n"), fname, ex.getJavaDescription().c_str());
242 Scierror(999,_("%s: Execution Java stack: %s.\n"), fname, ex.getJavaStackTrace().c_str()); 242 Scierror(999,_("%s: Execution Java stack: %s.\n"), fname, ex.getJavaStackTrace().c_str());
243 Scierror(999,_("If Scilab is started in a chroot, you might want to try to set the two environment variables: SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1\n"));
243 return FALSE; 244 return FALSE;
244 } 245 }
245 246