Commit 1ea5cf12 authored by Sébastien Timmermans's avatar Sébastien Timmermans
Browse files

[ErrMsg] lut and buffer remove mbs_error

parent 97cfa6cf
...@@ -602,7 +602,7 @@ MbsLut1D* mbs_lut_1D_load_file(char* fileName) ...@@ -602,7 +602,7 @@ MbsLut1D* mbs_lut_1D_load_file(char* fileName)
if (flut == 0) { if (flut == 0) {
mbs_msg("\t>LOOK UP TABLE> Error in mbs_lut_1D_load_file.\n"); mbs_msg("\t>LOOK UP TABLE> Error in mbs_lut_1D_load_file.\n");
mbs_msg("\t> > Impossible to find the file %s.\n", fileName); mbs_msg("\t> > Impossible to find the file %s.\n", fileName);
mbs_error_msg("In Look up table loading file, shuting down the process.\n"); mbs_msg("In Look up table loading file, shuting down the process.\n");
mbs_lut_1D_free(lut); mbs_lut_1D_free(lut);
return NULL; return NULL;
} }
...@@ -647,7 +647,7 @@ MbsLut2D* mbs_lut_2D_load_file(char* fileName) ...@@ -647,7 +647,7 @@ MbsLut2D* mbs_lut_2D_load_file(char* fileName)
if (flut == 0) { if (flut == 0) {
mbs_msg("\t>LOOK UP TABLE> Error in mbs_lut_2D_load_file.\n"); mbs_msg("\t>LOOK UP TABLE> Error in mbs_lut_2D_load_file.\n");
mbs_msg("\t> > Impossible to find the file %s.", fileName); mbs_msg("\t> > Impossible to find the file %s.", fileName);
mbs_error_msg("In Look up table loading file, shuting down the process.\n"); mbs_msg("In Look up table loading file .\n");
mbs_lut_2D_free(lut); mbs_lut_2D_free(lut);
return NULL; return NULL;
} }
...@@ -785,7 +785,7 @@ MbsLut1Dvec* mbs_lut_1Dvec_load_file(char* fileName) ...@@ -785,7 +785,7 @@ MbsLut1Dvec* mbs_lut_1Dvec_load_file(char* fileName)
} }
// Checking if the file is empty // Checking if the file is empty
if (NULL == fgets(line, size, flut)) { if (NULL == fgets(line, size, flut)) {
mbs_error_msg("The file %s is empty.", fileName); mbs_msg("The file %s is empty.", fileName);
mbs_msg("In Look up table loading file .\n"); mbs_msg("In Look up table loading file .\n");
return NULL; return NULL;
} }
......
...@@ -88,7 +88,7 @@ MbsBuffer* mbs_new_buffer(char* filename, char* anim_name, int nx, int size, int ...@@ -88,7 +88,7 @@ MbsBuffer* mbs_new_buffer(char* filename, char* anim_name, int nx, int size, int
fid = fopen(b->anim->filename, "w"); fid = fopen(b->anim->filename, "w");
if (fid == NULL) if (fid == NULL)
{ {
mbs_error_msg("in mbs_buffer_save: cannot open file '%s'\n", b->anim->filename); mbs_msg("in mbs_buffer_save: cannot open file '%s'\n", b->anim->filename);
free(b->tx); free(b->tx);
free(b->last_x); free(b->last_x);
free(b->anim); free(b->anim);
...@@ -359,7 +359,7 @@ int mbs_buffer_write(MbsBuffer* b) { ...@@ -359,7 +359,7 @@ int mbs_buffer_write(MbsBuffer* b) {
{ {
err = mbs_anim_write(b); err = mbs_anim_write(b);
if (err < 0){ if (err < 0){
mbs_error_msg("\t >Buffer writing> Error during mbs_buffer_write.\n"); mbs_msg("\t >Buffer writing> Error during mbs_buffer_write.\n");
return err; return err;
} }
} }
...@@ -385,7 +385,7 @@ int mbs_anim_write(MbsBuffer* b) ...@@ -385,7 +385,7 @@ int mbs_anim_write(MbsBuffer* b)
if (fid == NULL) if (fid == NULL)
{ {
mbs_error_msg("\t >ANIM WRITE> in mbs_anim_write: cannot open file '%s'\n", b->anim->filename); mbs_msg("\t >ANIM WRITE> in mbs_anim_write: cannot open file '%s'\n", b->anim->filename);
return _MBS_ERR_LOW_FILES; return _MBS_ERR_LOW_FILES;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment