Skip to content

Instantly share code, notes, and snippets.

@Atlas48
Last active January 2, 2016 05:39
Show Gist options
  • Save Atlas48/8258303 to your computer and use it in GitHub Desktop.
Save Atlas48/8258303 to your computer and use it in GitHub Desktop.
A small error preventer I got from some site.
#replace thescript.tcl with script name
#Desinged for use with Eggdrop
if {[catch {source scripts/thescript.tcl>}] err} {
putlog "Error while loading thescript.tcl: $err"
} else {
putlog "thescript.tcl loaded without errors"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment