[BioRuby-cvs] bioruby/lib/bio/shell core.rb,1.10,1.11

Katayama Toshiaki k at pub.open-bio.org
Fri Nov 25 11:47:12 EST 2005


Update of /home/repository/bioruby/bioruby/lib/bio/shell
In directory pub.open-bio.org:/tmp/cvs-serv24818/lib/bio/shell

Modified Files:
	core.rb 
Log Message:
* raise are changed to warn (not to hang bioruby shell as much as possible)


Index: core.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/core.rb,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** core.rb	24 Nov 2005 19:30:08 -0000	1.10
--- core.rb	25 Nov 2005 16:47:10 -0000	1.11
***************
*** 170,174 ****
          puts "done"
        rescue
!         raise "Failed to create #{dir} : #{$!}"
        end
      end
--- 170,174 ----
          puts "done"
        rescue
!         warn "Error: Failed to create #{dir} : #{$!}"
        end
      end
***************
*** 206,210 ****
        puts "done"
      rescue
!       raise "Failed to save (#{file}) : #{$!}"
      end
    end
--- 206,210 ----
        puts "done"
      rescue
!       warn "Error: Failed to save (#{file}) : #{$!}"
      end
    end
***************
*** 287,291 ****
          end
        rescue
!         raise "Failed to load (#{file}) : #{$!}"
        end
        puts "done"
--- 287,291 ----
          end
        rescue
!         warn "Error: Failed to load (#{file}) : #{$!}"
        end
        puts "done"
***************
*** 321,330 ****
            Config[:marshal] = MARSHAL
          rescue
!           raise "Failed to dump (#{file}) : #{$!}"
          end
        end
        puts "done"
      rescue
!       raise "Failed to save (#{file}) : #{$!}"
      end
    end
--- 321,330 ----
            Config[:marshal] = MARSHAL
          rescue
!           warn "Error: Failed to dump (#{file}) : #{$!}"
          end
        end
        puts "done"
      rescue
!       warn "Error: Failed to save (#{file}) : #{$!}"
      end
    end
***************
*** 366,370 ****
        puts "done"
      rescue
!       raise "Failed to save (#{file}) : #{$!}"
      end
    end
--- 366,370 ----
        puts "done"
      rescue
!       warn "Error: Failed to save (#{file}) : #{$!}"
      end
    end
***************
*** 425,429 ****
      rescue
        @script_begin = nil
!       raise "Failed to save (#{file}) : #{$!}"
      end
    end
--- 425,429 ----
      rescue
        @script_begin = nil
!       warn "Error: Failed to save (#{file}) : #{$!}"
      end
    end



More information about the bioruby-cvs mailing list