summaryrefslogtreecommitdiff
path: root/cpp/rubygen
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/rubygen')
-rwxr-xr-xcpp/rubygen/framing.0-10/constants.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/rubygen/framing.0-10/constants.rb b/cpp/rubygen/framing.0-10/constants.rb
index 206aabadf9..fa46751f7a 100755
--- a/cpp/rubygen/framing.0-10/constants.rb
+++ b/cpp/rubygen/framing.0-10/constants.rb
@@ -152,7 +152,7 @@ EOS
assign = "holder = new #{c.name.caps}Exception(text); " unless c.name == "normal"
genl "case #{c.value}: #{assign}break;"
}
- genl " holder = new #{invalid}(QPID_MSG(\"Bad exception code: \" << code << \": \" << text));"
+ genl "default: holder = new #{invalid}(QPID_MSG(\"Bad #{enum.parent.name}: \" << code << \": \" << text));"
}
genl "return holder;"
}