2222 self.tr("""<p>The data received from the refactoring""" |
2222 self.tr("""<p>The data received from the refactoring""" |
2223 """ server could not be decoded. Please report""" |
2223 """ server could not be decoded. Please report""" |
2224 """ this issue with the received data to the""" |
2224 """ this issue with the received data to the""" |
2225 """ eric bugs email address.</p>""" |
2225 """ eric bugs email address.</p>""" |
2226 """<p>Error: {0}</p>""" |
2226 """<p>Error: {0}</p>""" |
2227 """<p>Data:<br/>{1}</p>""").format( |
2227 """<p>Data:<br/>{1}</p>""") |
2228 params["ExceptionValue"], |
2228 .format(params["ExceptionValue"], |
2229 Utilities.html_encode(params["ProtocolData"])), |
2229 Utilities.html_encode(params["ProtocolData"])), |
2230 EricMessageBox.StandardButtons( |
2230 EricMessageBox.Ok |
2231 EricMessageBox.Ok)) |
2231 ) |
2232 else: |
2232 else: |
2233 EricMessageBox.critical( |
2233 EricMessageBox.critical( |
2234 None, |
2234 None, |
2235 self.tr("Refactoring Client Error"), |
2235 self.tr("Refactoring Client Error"), |
2236 self.tr("<p>An exception happened in the refactoring" |
2236 self.tr("<p>An exception happened in the refactoring" |
2237 " client. Please report it to the eric bugs" |
2237 " client. Please report it to the eric bugs" |
2238 " email address.</p>" |
2238 " email address.</p>" |
2239 "<p>Exception: {0}</p>" |
2239 "<p>Exception: {0}</p>" |
2240 "<p>Value: {1}</p>" |
2240 "<p>Value: {1}</p>" |
2241 "<p>Traceback: {2}</p>").format( |
2241 "<p>Traceback: {2}</p>") |
2242 Utilities.html_encode(params["ExceptionType"]), |
2242 .format(Utilities.html_encode(params["ExceptionType"]), |
2243 params["ExceptionValue"], |
2243 params["ExceptionValue"], |
2244 params["Traceback"].replace("\r\n", "<br/>") |
2244 params["Traceback"].replace("\r\n", "<br/>") |
2245 .replace("\n", "<br/>").replace("\r", "<br/>"), |
2245 .replace("\n", "<br/>").replace("\r", "<br/>")), |
2246 ), |
2246 EricMessageBox.Ok |
2247 EricMessageBox.StandardButtons( |
2247 ) |
2248 EricMessageBox.Ok)) |
|
2249 |
2248 |
2250 def __startRefactoringClient(self, interpreter, clientEnv): |
2249 def __startRefactoringClient(self, interpreter, clientEnv): |
2251 """ |
2250 """ |
2252 Private method to start the refactoring client. |
2251 Private method to start the refactoring client. |
2253 |
2252 |