{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/fcb0a495be2702e13ff493a5cd5a8f69?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"fcb0a495be2702e13ff493a5cd5a8f69","url":"https://api.github.com/users/bootleq","login":"bootleq","id":156608},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-01T09:22:38Z","comments":1,"closed_at":"2011-11-01T09:22:38Z","url":"https://api.github.com/repos/godfat/rib/issues/4","body":"While `1 / 0` should raise ZeroDivisionError, rib 0.9.9 shows\r\n\r\n    Error while printing error:\r\n      NoMethodError: private method `sub' called for nil:NilClass\r\n\r\n\r\nThe problem:\r\nhttps://github.com/godfat/rib/blob/master/lib/rib/more/color.rb#L66-68\r\n\r\n    path, rest = ::File.split(b)\r\n    name, msgs = rest.split(':', 2)\r\n    msg = msgs.sub(/(\\d+):/){red{$1}+':'}.sub(/`.+?'/){green{$&}}\r\n\r\nwhere `rest` can't be split into two, thus `msgs` is nil.\r\nI think this can be avoided, bring original error to user.","html_url":"https://github.com/godfat/rib/issues/4","number":4,"title":"Error printing error with special formed backtrace path","id":2104636,"created_at":"2011-11-01T03:37:46Z"},"action":"closed"}