Skip to content

Commit

Permalink
Print out errno in strerror.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Mar 19, 2015
1 parent 949d979 commit 83887b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rct/Rct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,9 @@ String strerror(int error)
buf[0] = '\0';
auto foo = strerror_r(error, buf, sizeof(buf));
(void)foo;
return buf;
String ret = buf;
ret << " (" << error << ')';
return ret;
}


Expand Down

0 comments on commit 83887b4

Please sign in to comment.