One more fix for #962, improve error code
Grrr unwanted change