better error for no directory