Added an error message to set_space