pub fn some_or_error<T>(input: Option<T>, message: &str) -> Result<T, Error>
Returns the value inside the Option or an Error with the message.