Report error when projection axis too small

This triggers an error message window if the projection axis is of
length 0 or 1.