Improved error message on category deletion

Should have been previous commit, but somehow I messed it up so here it
is.