Skip to content
Snippets Groups Projects
Commit 68741713 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Return line number up on failure.

Debugging why textgen is failing during Windows/CI build.
parent 7ff927ff
Branches
Tags
No related merge requests found
......@@ -171,11 +171,11 @@ int main(int argc, char **argv)
SAFEPRINTF(path,"%s/text.dat",p);
if((text_dat=fopen(path,"r"))==NULL) {
perror(path);
return(1);
return __LINE__;
}
if((text_h=fopen("text.h", "w"))==NULL) {
perror("text.h");
return(1);
return __LINE__;
}
fputs("/* text.h */\n",text_h);
fputs("\n",text_h);
......@@ -196,7 +196,7 @@ int main(int argc, char **argv)
sprintf(path,"%s/load/text.js",p);
if((text_js=fopen(path, "w"))==NULL) {
perror(path);
return(1);
return __LINE__;
}
fputs("/* Synchronet static text string constants */\n",text_js);
fputs("\n",text_js);
......@@ -209,7 +209,7 @@ int main(int argc, char **argv)
fputs("\n",text_js);
if((text_defaults_c=fopen("text_defaults.c","w"))==NULL) {
fprintf(stderr,"Can't open text_defaults.c!\n");
return(1);
return __LINE__;
}
fputs("/* Synchronet default text strings */\n",text_defaults_c);
fputs("\n",text_defaults_c);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment