Skip to content

Commit 8553ac6

Browse files
committed
fix unittests
1 parent 3fab4f6 commit 8553ac6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/fluid/platform/enforce.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct EnforceNotMet : public std::exception {
7373
} catch (const std::exception& exp) {
7474
std::ostringstream sout;
7575

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;
7777
sout << "PaddlePaddle Call Stacks: " << std::endl;
7878

7979
void* call_stack[TRACE_STACK_LIMIT];
@@ -105,7 +105,7 @@ struct EnforceNotMet : public std::exception {
105105
struct EOFException : public std::exception {
106106
std::string err_str_;
107107
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);
109109
}
110110

111111
const char* what() const noexcept { return err_str_.c_str(); }

0 commit comments

Comments
 (0)