summaryrefslogtreecommitdiff
path: root/lib/error.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2013-02-15 12:23:52 +0100
committerChristoph Helma <helma@in-silico.ch>2013-02-15 12:23:52 +0100
commitdee8892491dcda0bfa68c413ee0fbbc0ddd33f12 (patch)
treec85da4fdda99e9a434bf694e8ec4b31cd5c29134 /lib/error.rb
parent83f4b12aaacfd27e7019517ac7089ddd912ba259 (diff)
error messages in tasks fixed
Diffstat (limited to 'lib/error.rb')
-rw-r--r--lib/error.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/error.rb b/lib/error.rb
index e58ed5d..3dd2950 100644
--- a/lib/error.rb
+++ b/lib/error.rb
@@ -31,7 +31,7 @@ class RuntimeError
# rdf serialization methods for all formats e.g. to_rdfxml
send :define_method, "to_#{format}".to_sym do
RDF::Writer.for(format).buffer do |writer|
- @rdf.each{|statement| writer << statement}
+ @rdf.each{|statement| writer << statement} if @rdf
end
end
end