MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / createGenericErrorHtml

Function createGenericErrorHtml

CesiumClientCommon/src/OAuth2PKCE.cpp:104–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104std::string createGenericErrorHtml(
105 const std::string& applicationName,
106 const std::string& errorMessage,
107 const std::string& errorDescription) {
108 return fmt::format(
109 R"STR(
110 <html>
111 <h2 style="text-align: center;">{}</h2>
112 <br/>
113 <div style="text-align: center;">
114 {}
115 </div>
116 <br/>
117 <div style="text-align: center;">
118 Please close this window and return to {}.
119 </div>
120 <html>
121 )STR",
122 errorMessage,
123 errorDescription,
124 applicationName);
125}
126
127std::string createGenericErrorHtml(
128 const std::string& applicationName,

Callers 1

authorizeMethod · 0.85

Calls 2

formatFunction · 0.85
hasErrorsMethod · 0.80

Tested by

no test coverage detected