Skip to content

Commit

Permalink
- Don't append errors to the error file. Always write the current imp…
Browse files Browse the repository at this point in the history
…ort errors.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10123 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Oct 14, 2011
1 parent b6a6c1b commit 8ca6eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FMI/import/source/moGenerator.c
Expand Up @@ -960,7 +960,7 @@ int main(int argc, char *argv[]){
// end

// Creating log file
errLogFile = fopen("fmuImportError.log","a+");
errLogFile = fopen("fmuImportError.log","w");
if(!errLogFile){
printf("#### %s, %s, %d, : Error: Creating file fmuImportError.log failed...\n",__DATE__,__TIME__,__LINE__);
exit(EXIT_FAILURE);
Expand Down

0 comments on commit 8ca6eb2

Please sign in to comment.