@@ -243,8 +243,19 @@ def push_to_server(self, url):
243243 QgsMessageLog .logMessage (
244244 f"Success! Status Code: { response .status_code } " )
245245
246+ QMessageBox .information (
247+ self ,
248+ "Information" ,
249+ f"Success! Status Code: { response .status_code } " ,
250+ )
251+
246252 except requests .exceptions .RequestException as e :
247253 QgsMessageLog .logMessage (f"An error occurred: { e } " )
254+ QMessageBox .critical (
255+ self ,
256+ "Error" ,
257+ f"An error occurred pulling the configuration from the server: { e } " ,
258+ )
248259
249260
250261 def pull_from_server (self , url ):
@@ -264,6 +275,12 @@ def pull_from_server(self, url):
264275 QgsMessageLog .logMessage (
265276 f"Success! Status Code: { response .status_code } " )
266277
278+ QMessageBox .information (
279+ self ,
280+ "Information" ,
281+ f"Success! Status Code: { response .status_code } " ,
282+ )
283+
267284 QgsMessageLog .logMessage (
268285 f"Response: { response .text } " )
269286
@@ -297,6 +314,13 @@ def pull_from_server(self, url):
297314 except requests .exceptions .RequestException as e :
298315 QgsMessageLog .logMessage (f"An error occurred: { e } " )
299316
317+ QMessageBox .critical (
318+ self ,
319+ "Error" ,
320+ f"An error occurred pulling the configuration from the server: { e } " ,
321+ )
322+
323+
300324 def save_to_file (self , file_path ):
301325
302326 if file_path :
0 commit comments