MCPcopy Create free account
hub / github.com/nodejs/nan / SetErrorMessage

Method SetErrorMessage

nan.h:2110–2116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2108 }
2109
2110 void SetErrorMessage(const char *msg) {
2111 delete[] errmsg_;
2112
2113 size_t size = strlen(msg) + 1;
2114 errmsg_ = new char[size];
2115 memcpy(errmsg_, msg, size);
2116 }
2117
2118 const char* ErrorMessage() const {
2119 return errmsg_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected