File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,20 +28,21 @@ bool noui_ThreadSafeMessageBox(const bilingual_str& message, const std::string&
28
28
switch (style) {
29
29
case CClientUIInterface::MSG_ERROR:
30
30
strCaption = " Error: " ;
31
+ if (!fSecure ) LogError (" %s\n " , message.original );
31
32
break ;
32
33
case CClientUIInterface::MSG_WARNING:
33
34
strCaption = " Warning: " ;
35
+ if (!fSecure ) LogWarning (" %s\n " , message.original );
34
36
break ;
35
37
case CClientUIInterface::MSG_INFORMATION:
36
38
strCaption = " Information: " ;
39
+ if (!fSecure ) LogInfo (" %s\n " , message.original );
37
40
break ;
38
41
default :
39
42
strCaption = caption + " : " ; // Use supplied caption (can be empty)
43
+ if (!fSecure ) LogInfo (" %s%s\n " , strCaption, message.original );
40
44
}
41
45
42
- if (!fSecure ) {
43
- LogPrintf (" %s%s\n " , strCaption, message.original );
44
- }
45
46
tfm::format (std::cerr, " %s%s\n " , strCaption, message.original );
46
47
return false ;
47
48
}
You can’t perform that action at this time.
0 commit comments