Should print an error if no pref provided