Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
debuggin
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Maxwell committed Jun 29, 2011
1 parent 3eed4e9 commit c5533bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/resources/ruby/codegen.rb
Expand Up @@ -307,14 +307,14 @@ def <%=m.name%>(<%=m.args.map{|f| f[:name].camelize + ": " + type_of(f, true)}.j
.handle {
case t: ScalaThriftException => throw(t.toThrift())
case t: Throwable => {
log.error(t, "Uncaught error: %s", t)
log.error(t, "Uncaught error handled in <%=m.name%>: %s", t)
throw new <%=$exception_class ? $exception_class : "TApplicationException"%>(t.getMessage)
}
}
} catch {
case t: ScalaThriftException => throw(t.toThrift())
case t: Throwable => {
log.error(t, "Uncaught error: %s", t)
log.error(t, "Uncaught error caught in <%=m.name%>: %s", t)
throw new <%=$exception_class ? $exception_class : "TApplicationException"%>(t.getMessage)
}
}
Expand All @@ -338,14 +338,14 @@ def <%=idiomize(m)%>(<%=m.args.map{|f| f[:name].camelize + ": " + type_of(f)}.jo
.handle {
case t: ScalaThriftException => throw(t.toThrift())
case t: Throwable => {
log.error(t, "Uncaught error: %s", t)
log.error(t, "Uncaught error handled in <%=idiomize(m)%>: %s", t)
throw new <%=$exception_class ? $exception_class : "TApplicationException"%>(t.getMessage)
}
}
} catch {
case t: ScalaThriftException => throw(t.toThrift())
case t: Throwable => {
log.error(t, "Uncaught error: %s", t)
log.error(t, "Uncaught error caught in <%=idiomize(m)%>: %s", t)
throw new <%=$exception_class ? $exception_class : "TApplicationException"%>(t.getMessage)
}
}
Expand Down

0 comments on commit c5533bc

Please sign in to comment.