THRIFT-727 - C++: what() method of generated exceptions will provide more information
Patch: Anna Dymek <aadymek@gmail.com>
Client: C++
This closes #469
diff --git a/tutorial/php/PhpServer.php b/tutorial/php/PhpServer.php
index 4af70a4..22ae43e 100755
--- a/tutorial/php/PhpServer.php
+++ b/tutorial/php/PhpServer.php
@@ -79,7 +79,7 @@
case \tutorial\Operation::DIVIDE:
if ($w->num2 == 0) {
$io = new \tutorial\InvalidOperation();
- $io->what = $w->op;
+ $io->whatOp = $w->op;
$io->why = "Cannot divide by 0";
throw $io;
}
@@ -87,7 +87,7 @@
break;
default:
$io = new \tutorial\InvalidOperation();
- $io->what = $w->op;
+ $io->whatOp = $w->op;
$io->why = "Invalid Operation";
throw $io;
}