assimp_cmd export: print error message on failure.

pull/1812/head
Tommy 2018-02-25 10:10:07 +01:00
parent 249f1844ae
commit ce7673979b
1 changed files with 2 additions and 1 deletions

View File

@ -334,7 +334,8 @@ bool ExportModel(const aiScene* pOut,
PrintHorBar();
}
if (res != AI_SUCCESS) {
printf("ERROR: Failed to write file\n");
printf("Failed to write file\n");
printf("ERROR: %s\n", globalExporter->GetErrorString());
return false;
}