- Fixes to error output
This commit is contained in:
		
							parent
							
								
									cf84e83f9f
								
							
						
					
					
						commit
						df62d65d5c
					
				@ -254,7 +254,14 @@ class ErrorWindow(wx.Dialog):
 | 
				
			|||||||
        line = wx.StaticLine(self, -1, size=(20,-1), style=wx.LI_HORIZONTAL)
 | 
					        line = wx.StaticLine(self, -1, size=(20,-1), style=wx.LI_HORIZONTAL)
 | 
				
			||||||
        sizer.Add(line, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.TOP, 5)
 | 
					        sizer.Add(line, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.TOP, 5)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        label = wx.StaticText(self, -1, "\n".join(errors))
 | 
					        etxt = ""
 | 
				
			||||||
 | 
					        prefix = "error: "
 | 
				
			||||||
 | 
					        for er in errors:
 | 
				
			||||||
 | 
					            if er.startswith(prefix):
 | 
				
			||||||
 | 
					                er = er[len(prefix):]
 | 
				
			||||||
 | 
					            etxt = etxt + "%s\n" % (er)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        label = wx.StaticText(self, -1, etxt)
 | 
				
			||||||
        sizer.Add(label, 0, wx.ALIGN_LEFT|wx.ALL, 5)
 | 
					        sizer.Add(label, 0, wx.ALIGN_LEFT|wx.ALL, 5)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        line = wx.StaticLine(self, -1, size=(20,-1), style=wx.LI_HORIZONTAL)
 | 
					        line = wx.StaticLine(self, -1, size=(20,-1), style=wx.LI_HORIZONTAL)
 | 
				
			||||||
 | 
				
			|||||||
										
											Binary file not shown.
										
									
								
							@ -1976,8 +1976,8 @@ checkLabelMatchThis (const System sys, const Protocol p, const Role readrole,
 | 
				
			|||||||
		      eprintf ("error: \t");
 | 
							      eprintf ("error: \t");
 | 
				
			||||||
		      roledefPrint (readevent);
 | 
							      roledefPrint (readevent);
 | 
				
			||||||
		      eprintf ("\n");
 | 
							      eprintf ("\n");
 | 
				
			||||||
		      globalError--;
 | 
					 | 
				
			||||||
		      error_die ();
 | 
							      error_die ();
 | 
				
			||||||
 | 
							      globalError--;
 | 
				
			||||||
		    }
 | 
							    }
 | 
				
			||||||
		  else
 | 
							  else
 | 
				
			||||||
		    {
 | 
							    {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user