diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-24 00:24:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-24 00:24:24 +0100 |
| commit | 06b6f027c011290b7759dc18c586c84e83ca8fee (patch) | |
| tree | 8f7408ad7da1cd2c016b02d37c4b68d7f187441a | |
| parent | 666d0b238f32c0383068d3d8f3936f46c4e67a14 (diff) | |
Better error message.
| -rw-r--r-- | src/lib/image.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc index 8718223ae..d1f1fb9d1 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -542,7 +542,7 @@ Image::alpha_blend (shared_ptr<const Image> other, Position<int> position) break; } default: - DCPOMATIC_ASSERT (false); + throw PixelFormatError ("alpha_blend()", _pixel_format); } } |
