Improved error message

Added an informative message to the assert checking the number of channels.