aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v6/rexml.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-02-05 00:27:47 -0500
committerRalph Amissah <ralph@amissah.com>2014-02-05 00:27:47 -0500
commitbd5e94912c594372eca319e75e15c364b7e124ea (patch)
treef18f7aec63b42bb9062a22ac000d197a241d1536 /lib/sisu/v6/rexml.rb
parentv5 v6: html, cleaning, minor (diff)
v5 v6: wrappers round require
Diffstat (limited to 'lib/sisu/v6/rexml.rb')
-rw-r--r--lib/sisu/v6/rexml.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/sisu/v6/rexml.rb b/lib/sisu/v6/rexml.rb
index f9b94cee..63e70a42 100644
--- a/lib/sisu/v6/rexml.rb
+++ b/lib/sisu/v6/rexml.rb
@@ -62,14 +62,22 @@
=end
module SiSU_Rexml
# load XML file for REXML parsing
- require 'rexml/document' if FileTest.directory?("#{Config::CONFIG['rubylibdir']}/rexml") #Config::CONFIG['sitedir']
+ begin
+ require 'rexml/document' if FileTest.directory?("#{Config::CONFIG['rubylibdir']}/rexml") #Config::CONFIG['sitedir']
+ rescue LoadError
+ SiSU_Utils::CodeMarker.new(__LINE__,__FILE__,:fuchsia).error('rexml/document NOT FOUND (LoadError)')
+ end
require_relative 'param' # param.rb
include SiSU_Param
require_relative 'sysenv' # sysenv.rb
include SiSU_Env
include SiSU_Viz
class Rexml
- require 'rexml/document' if FileTest.directory?("#{Config::CONFIG['rubylibdir']}/rexml") #Config::CONFIG['sitedir']
+ begin
+ require 'rexml/document' if FileTest.directory?("#{Config::CONFIG['rubylibdir']}/rexml") #Config::CONFIG['sitedir']
+ rescue LoadError
+ SiSU_Utils::CodeMarker.new(__LINE__,__FILE__,:fuchsia).error('rexml/document NOT FOUND (LoadError)')
+ end
def initialize(md,fno)
@md,@fno=md,fno
@env=SiSU_Env::InfoEnv.new(@md.fns)