lib/bio/db/gff/gffassemble.rb in bio-gff3-0.8.0 vs lib/bio/db/gff/gffassemble.rb in bio-gff3-0.8.2
- old
+ new
@@ -15,11 +15,16 @@
module Error
def info str, id=''
$stderr.print "Info: "+str+" <#{id}>\n"
end
- def warn str,id=''
+ def warn str, id=''
Kernel.warn "Warning: "+str+" <#{id}>"
+ end
+
+ def error str, id=''
+ Kernel.warn "Error: "+str+" <#{id}>"
+ exit(1) if $stop_on_error
end
end
# Helper class for counting IDs
class Counter < Hash