Fix for #1001: generate nice error for segment ops until #836 is implemented
Test for #1001: nice error for segment ops until #836 is implemented