/[ascend]/branches/relerrorlist/ascend/compiler/relerr.c
ViewVC logotype

Diff of /branches/relerrorlist/ascend/compiler/relerr.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3194 by jpye, Thu Apr 13 06:14:08 2017 UTC revision 3195 by jpye, Fri Apr 21 09:49:22 2017 UTC
# Line 141  int rel_errorlist_report_error(rel_error Line 141  int rel_errorlist_report_error(rel_error
141          case undefined_instance:          case undefined_instance:
142              if(NULL != err->data.name){              if(NULL != err->data.name){
143                  namestr = WriteNameString(err->data.name);                  namestr = WriteNameString(err->data.name);
144                  WriteStatementError(3,stat,0,"Unmade or undefined instance '%s' in relation.",namestr);                  WriteStatementError(ASC_USER_ERROR,stat,0,"Unmade or undefined instance '%s' in relation.",namestr);
145                  ASC_FREE(namestr);                  ASC_FREE(namestr);
146              }else{              }else{
147                  WriteStatementError(3,stat,0,"%s instance in relation (name not reported).",(rel_errorlist_get_find_error(err)==unmade_instance?"Unmade":"Undefined"));                  WriteStatementError(ASC_USER_ERROR,stat,0,"%s instance in relation (name not reported).",(rel_errorlist_get_find_error(err)==unmade_instance?"Unmade":"Undefined"));
148              }              }
149              return 1;              return 1;
150          case impossible_instance:          case impossible_instance:
151              WSSM(ASCERR,stat,"Relation contains an impossible instance",3);              WriteStatementError(ASC_USER_ERROR,stat,1,"Relation contains an impossible instance");
152              return 1;              return 1;
153          case correct_instance:          case correct_instance:
154              ASC_PANIC("Incorrect error response.\n");/*NOTREACHED*/              ASC_PANIC("Incorrect error response.\n");/*NOTREACHED*/

Legend:
Removed from v.3194  
changed lines
  Added in v.3195

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22