mirror of
				https://github.com/axllent/mailpit.git
				synced 2025-10-31 00:07:43 +02:00 
			
		
		
		
	Format error syntax
This commit is contained in:
		| @@ -125,7 +125,7 @@ func Run() { | ||||
|  | ||||
| 	msg, err := mail.ReadMessage(bytes.NewReader(body)) | ||||
| 	if err != nil { | ||||
| 		fmt.Fprintln(os.Stderr, fmt.Sprintf("error parsing message body: %s", err)) | ||||
| 		fmt.Fprintf(os.Stderr, "error parsing message body: %si\n", err) | ||||
| 		os.Exit(11) | ||||
| 	} | ||||
|  | ||||
|   | ||||
| @@ -263,10 +263,10 @@ func assertEqual(t *testing.T, a interface{}, b interface{}, message string) { | ||||
| func assertEqualStats(t *testing.T, total int, unread int) { | ||||
| 	s := StatsGet() | ||||
| 	if total != s.Total { | ||||
| 		t.Fatal(fmt.Sprintf("Incorrect total mailbox stats: \"%d\" != \"%d\"", total, s.Total)) | ||||
| 		t.Fatalf("Incorrect total mailbox stats: \"%d\" != \"%d\"", total, s.Total) | ||||
| 	} | ||||
|  | ||||
| 	if unread != s.Unread { | ||||
| 		t.Fatal(fmt.Sprintf("Incorrect unread mailbox stats: \"%d\" != \"%d\"", unread, s.Unread)) | ||||
| 		t.Fatalf("Incorrect unread mailbox stats: \"%d\" != \"%d\"", unread, s.Unread) | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user