File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ struct EnforceNotMet : public std::exception {
73
73
} catch (const std::exception& exp) {
74
74
std::ostringstream sout;
75
75
76
- sout << string::Sprintf (" '%s' at [%s:%d]" , exp.what (), f, l) << std::endl;
76
+ sout << string::Sprintf (" %s at [%s:%d]" , exp.what (), f, l) << std::endl;
77
77
sout << " PaddlePaddle Call Stacks: " << std::endl;
78
78
79
79
void * call_stack[TRACE_STACK_LIMIT];
@@ -105,7 +105,7 @@ struct EnforceNotMet : public std::exception {
105
105
struct EOFException : public std ::exception {
106
106
std::string err_str_;
107
107
EOFException (const char * err_msg, const char * f, int l) {
108
- err_str_ = string::Sprintf (" '%s' at [%s:%d]" , err_msg, f, l);
108
+ err_str_ = string::Sprintf (" %s at [%s:%d]" , err_msg, f, l);
109
109
}
110
110
111
111
const char * what () const noexcept { return err_str_.c_str (); }
You can’t perform that action at this time.
0 commit comments