This could use a friendly error message.