Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Improved message formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
joakim-hove committed May 3, 2017
1 parent 398ceba commit 2e42dc2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions libenkf/src/fs_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,16 @@ void fs_driver_assert_version( FILE * stream , const char * mount_point) {
if ((file_version == 105) && (CURRENT_FS_VERSION == 106))
fprintf(stderr,"%s: The file system you are accessing has been written with an older version of ert - STATIC information ignored. \n",__func__);
else {
fprintf(stderr,"%s: The file system you are trying to access has been created with an old version of ert - sorry.\n",__func__);
fprintf(stderr,"ert_fs_version: %d \n",CURRENT_FS_VERSION );
fprintf(stderr,"%s version: %d \n",mount_point , file_version);
fprintf(stderr,"-----------------------------------------------------------------------------------------------------\n");
fprintf(stderr," %s: The file system you are trying to access has been created with an old version of ert - sorry.\n",__func__);
fprintf(stderr," ert_fs_version: %d \n",CURRENT_FS_VERSION );
fprintf(stderr," %s version: %d \n",mount_point , file_version);

if ((file_version == 106) && (CURRENT_FS_VERSION == 107))
fprintf(stderr,"The utility: ert_upgrade_fs107 can be used to upgrade storage version from 106 to 107\n");
fprintf(stderr," The utility: ert_upgrade_fs107 can be used to upgrade storage version from 106 to 107\n\n");

util_exit("EXIT");
util_exit(" EXIT\n");
fprintf(stderr,"-----------------------------------------------------------------------------------------------------\n");
}
}

Expand Down

0 comments on commit 2e42dc2

Please sign in to comment.