|
@@ -160,7 +160,12 @@ int main(int argc, char *argv[])
|
|
|
snprintf(strout,1000,"Convert OK. out file path: %s ",gstr_outputpath);
|
|
|
ivstdcolorout(strout,iv::STDCOLOR_BOLDGREEN);
|
|
|
OpenDriveXmlWriter x(&xxodr);
|
|
|
- x.WriteFile(gstr_outputpath);
|
|
|
+ bool bWrite = x.WriteFile(gstr_outputpath);
|
|
|
+ if(bWrite == false)
|
|
|
+ {
|
|
|
+ snprintf(strout,1000,"Save File Fail. Please check write privilege.");
|
|
|
+ ivstdcolorout(strout,iv::STDCOLOR_BOLDRED);
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
{
|