Commit fd141ea6 authored by Andrew Twyman's avatar Andrew Twyman

Missed case from "r" variable fix

parent fa3a568e
...@@ -229,7 +229,7 @@ class ObjcppGenerator(spec: Spec) extends BaseObjcGenerator(spec) { ...@@ -229,7 +229,7 @@ class ObjcppGenerator(spec: Spec) extends BaseObjcGenerator(spec) {
writeObjcFuncDecl(m, new IndentWriter(stringWriter)) writeObjcFuncDecl(m, new IndentWriter(stringWriter))
val singleLineFunctionDecl = stringWriter.toString.replaceAll("\n *", " ") val singleLineFunctionDecl = stringWriter.toString.replaceAll("\n *", " ")
val exceptionReason = s"Got unexpected null return value from function $objcSelf $singleLineFunctionDecl" val exceptionReason = s"Got unexpected null return value from function $objcSelf $singleLineFunctionDecl"
w.w(s"if (r == nil)").braced { w.w(s"if (objcpp_result_ == nil)").braced {
w.wl(s"""throw std::invalid_argument("$exceptionReason");""") w.wl(s"""throw std::invalid_argument("$exceptionReason");""")
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment