summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLConfig.pm
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2015-06-23 04:33:46 +0000
committerNorbert Preining <preining@logic.at>2015-06-23 04:33:46 +0000
commit71ee50ca13287166e738dad2c16fb99cf874461c (patch)
treea04a1ce8f1f0d69462a4307776aab1982950e259 /Master/tlpkg/TeXLive/TLConfig.pm
parent6af117183deee7cbe17905fb246b425bd7f645e7 (diff)
error handling for TLPaper
git-svn-id: svn://tug.org/texlive/trunk@37643 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive/TLConfig.pm')
-rw-r--r--Master/tlpkg/TeXLive/TLConfig.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/tlpkg/TeXLive/TLConfig.pm b/Master/tlpkg/TeXLive/TLConfig.pm
index ed8a060ade7..8616de028c0 100644
--- a/Master/tlpkg/TeXLive/TLConfig.pm
+++ b/Master/tlpkg/TeXLive/TLConfig.pm
@@ -49,6 +49,7 @@ BEGIN {
%TLPDBConfigs
$NetworkTimeout
$PartialEngineSupport
+ $F_OK $F_WARNING $F_ERROR $F_NOPOSTACTION
);
@EXPORT = @EXPORT_OK;
}
@@ -198,6 +199,20 @@ our $PartialEngineSupport = "luajittex";
# timeout for network connections (wget, LWP) in seconds
our $NetworkTimeout = 30;
+# Flags for error handling across the scripts and modules
+# all fine
+our $F_OK = 0;
+#
+# some warnings, but we still try to run post actions
+our $F_WARNING = 1;
+#
+# error, terminating
+our $F_ERROR = 2;
+#
+# all fine, but no need to run post actions
+our $F_NOPOSTACTION = 4;
+
+
1;