fn fmt()

in identity/aziot-identityd/src/error.rs [94:125]


    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            InternalError::BadSettings(m) => write!(f, "bad settings: {m}"),
            InternalError::CreateCertificate(_) => f.write_str("could not create certificate"),
            InternalError::CreateHomeDir(_) => f.write_str("could not create home directory"),
            InternalError::GetModulePath(_) => f.write_str("could not get module backup file path"),
            InternalError::InvalidProxyUri(_) => f.write_str("invalid proxy uri"),
            InternalError::InvalidUri(_) => f.write_str("invalid resource uri"),
            InternalError::LoadKeyOpensslEngine(_) => {
                f.write_str("could not load aziot-key-openssl-engine")
            }
            InternalError::LoadDeviceInfo(_) => {
                f.write_str("could not load device information state")
            }
            InternalError::LoadSettings(_) => f.write_str("could not load settings"),
            InternalError::MasterIdentityKey(_) => f.write_str("master identity key error"),
            InternalError::ParseDeviceInfo(_) => {
                f.write_str("could not parse device information state")
            }
            InternalError::ParseSettings(_) => f.write_str("could not parse settings"),
            InternalError::SaveDeviceInfo(_) => {
                f.write_str("could not save device information state")
            }
            InternalError::SaveModuleBackup(m) => {
                write!(f, "could not save module information backup state: {m}")
            }
            InternalError::SerializeDeviceInfo(_) => {
                f.write_str("could not serialize device information state")
            }
            InternalError::SaveSettings(_) => f.write_str("could not save settings"),
        }
    }