diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-22 20:25:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-22 20:25:34 +0100 |
| commit | c597fcee56abc2e6d92e3cfbbfe3c7817d9d0cbe (patch) | |
| tree | a5a71eea18357b2624559e4ae4591e335d7e0275 /src | |
| parent | af9b2212f0d8f8c1f53aaf29e520b812dfdc321c (diff) | |
Improve an error message.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sound_asset.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sound_asset.cc b/src/sound_asset.cc index 833d89dc..9ec3b2f9 100644 --- a/src/sound_asset.cc +++ b/src/sound_asset.cc @@ -153,7 +153,10 @@ SoundAsset::construct (sigc::slot<string, Channel> get_path) } if (frame_buffer_channel[j].Size() != frame_buffer_channel[j].Capacity()) { - throw MiscError ("short audio frame"); + stringstream s; + s << "short audio frame; " << _channels << " channels, " + << frame_buffer_channel[j].Size() << " vs " << frame_buffer_channel[j].Capacity(); + throw MiscError (s.str ()); } } |
