summaryrefslogtreecommitdiff
path: root/tutorial/ocaml
diff options
context:
space:
mode:
authorKonrad Grochowski <hcorg@apache.org>2015-05-18 17:58:36 +0200
committerKonrad Grochowski <hcorg@apache.org>2015-05-18 19:47:23 +0200
commit3b115dfa614cfac7af86d81d99f69b381508b75e (patch)
tree525eef0ea64f6e3065ab416599c1be2b8be9e6a7 /tutorial/ocaml
parent83cd3e8d41001304f2efac9ebad92e02d3390ca7 (diff)
downloadthrift-3b115dfa614cfac7af86d81d99f69b381508b75e.tar.gz
THRIFT-727 - C++: what() method of generated exceptions will provide more information
Patch: Anna Dymek <aadymek@gmail.com> Client: C++ This closes #469
Diffstat (limited to 'tutorial/ocaml')
-rwxr-xr-xtutorial/ocaml/CalcServer.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tutorial/ocaml/CalcServer.ml b/tutorial/ocaml/CalcServer.ml
index 24d7d0364..b5facb79b 100755
--- a/tutorial/ocaml/CalcServer.ml
+++ b/tutorial/ocaml/CalcServer.ml
@@ -49,7 +49,7 @@ object (self)
| Operation.DIVIDE ->
if w#grab_num2 = Int32.zero then
let io = new invalidOperation in
- io#set_what (Operation.to_i w#grab_op) ;
+ io#set_whatOp (Operation.to_i w#grab_op) ;
io#set_why "Cannot divide by 0" ;
raise (InvalidOperation io)
else