Skip to content

Commit a63218e

Browse files
committed
Output errors, was "Open Xml file failed", now outputs detail of the error
e.g. "File not found!" or "OpenNI library can't find any module"
1 parent 43c256b commit a63218e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Samples/NiSimpleViewer/NiSimpleViewer.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ int main(int argc, char* argv[])
255255
}
256256
else if (rc != XN_STATUS_OK)
257257
{
258-
printf("Open failed: %s\n", xnGetStatusString(rc));
258+
XnChar message[1024];
259+
sprintf(message, "Open Xml file \"%s\" failed: ", SAMPLE_XML_PATH);
260+
xnPrintError(rc, message);
259261
return (rc);
260262
}
261263

0 commit comments

Comments
 (0)