summaryrefslogtreecommitdiff
path: root/libs/vr/libpdx/status.cpp
blob: c275dafc5fe51cb236d5caed35b7556ec8c15d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "pdx/status.h"

#include <pdx/rpc/serialization.h>
#include <string.h>

namespace android {
namespace pdx {

std::string ErrorStatus::ErrorToString(int error_code) {
  char message[1024] = {};
  return strerror_r(error_code, message, sizeof(message));
}

}  // namespace pdx
}  // namespace android