| 102 | } |
| 103 | |
| 104 | std::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 | |
| 127 | std::string createGenericErrorHtml( |
| 128 | const std::string& applicationName, |