Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
66b5772b
Commit
66b5772b
authored
Jun 10, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue #720
parent
faea32c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
common.h
include/spdlog/common.h
+3
-12
No files found.
include/spdlog/common.h
View file @
66b5772b
...
...
@@ -153,18 +153,9 @@ public:
spdlog_ex
(
const
std
::
string
&
msg
,
int
last_errno
)
{
std
::
string
errno_string
;
char
buf
[
256
],
*
buf_ptr
=
buf
;
if
(
fmt
::
safe_strerror
(
last_errno
,
buf_ptr
,
sizeof
(
buf
))
==
0
)
{
errno_string
=
buf_ptr
;
}
else
{
errno_string
=
"Unknown error"
;
}
_msg
=
msg
+
": "
+
errno_string
;
fmt
::
MemoryWriter
writer
;
fmt
::
format_system_error
(
writer
,
last_errno
,
msg
);
_msg
=
writer
.
str
();
}
const
char
*
what
()
const
SPDLOG_NOEXCEPT
override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment