Scripterrors

From Eggdrop Wiki

(Difference between revisions)
Jump to: navigation, search
Line 6: Line 6:
|newtext=
|newtext=
if {[catch {source scripts/thescript.tcl} err]} {
if {[catch {source scripts/thescript.tcl} err]} {
-
putlog "Error while loading thescript.tcl: $::errorInfo"
+
putlog "Error while loading thescript.tcl: $err"
} else {
} else {
putlog "thescript.tcl loaded without errors"
putlog "thescript.tcl loaded without errors"
}
}
}}
}}

Revision as of 11:36, 12 July 2011

To avoid Eggdrop crashing when an error in a scriptfile occurs: Do this for every bogus script:

Open the eggdrop.conf file in your editor.

Search for

source scripts/thescript.tcl

and replace it with

if {[catch {source scripts/thescript.tcl} err]} {
	putlog "Error while loading thescript.tcl: $err"
} else {
	putlog "thescript.tcl loaded without errors"
}
Personal tools