diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2014-01-03 17:08:43 -0800 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2014-01-03 17:08:43 -0800 |
commit | d8c9b5431b05550ee3a232e95af50a5e3d9ce4b5 (patch) | |
tree | 19c011c33deb91c72f32b8feb3c502628efedb45 /src/mem/ruby/common/NetDest.cc | |
parent | ba9ec669bcf68e4d4e3322f07e5f51af19f05b4a (diff) | |
download | gem5-d8c9b5431b05550ee3a232e95af50a5e3d9ce4b5.tar.xz |
python: provide better error message for wrapped C++ methods
If you successfully export a C++ SimObject method, but try to
invoke it from Python before the C++ object is created, you
get a confusing error that says the attribute does not exist,
making you question whether you successfully exported the
method at all. In reality, your only problem is that you're
calling the method too soon. This patch enhances the error
message to give you a better clue.
Diffstat (limited to 'src/mem/ruby/common/NetDest.cc')
0 files changed, 0 insertions, 0 deletions