So I fixed this in tree by using strerror(), but this obviously will have issues as well (for concurrency).
So I fixed this in tree by using strerror(), but this obviously will have issues as well (for concurrency).