diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-08 13:43:15 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-08 13:43:15 +0300 |
commit | 1e386d98ced39c181f7331550028474716ab48b3 (patch) | |
tree | ed447744553f65ba0e43969d24664ac13e67774f /source | |
parent | e6acb4fba0945cb03cda7da7ce63a20abc7b0e7d (diff) |
Make DNA and RNA errors more meaningful and friendly
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesdna/intern/makesdna.c | 4 | ||||
-rw-r--r-- | source/blender/makesrna/intern/makesrna.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index a6262a9b130..cf39fb69c73 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -1195,7 +1195,9 @@ static int make_structDNA(const char *baseDirectory, FILE *file, FILE *file_offs static void make_bad_file(const char *file, int line) { FILE *fp = fopen(file, "w"); - fprintf(fp, "#error \"Error! can't make correct DNA.c file from %s:%d, STUPID!\"\n", __FILE__, line); + fprintf(fp, + "#error \"Error! can't make correct DNA.c file from %s:%d, check alignment.\"\n", + __FILE__, line); fclose(fp); } diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c index a47426861b1..2aa6fc9cfc9 100644 --- a/source/blender/makesrna/intern/makesrna.c +++ b/source/blender/makesrna/intern/makesrna.c @@ -4013,7 +4013,10 @@ static void rna_generate_header_cpp(BlenderRNA *UNUSED(brna), FILE *f) static void make_bad_file(const char *file, int line) { FILE *fp = fopen(file, "w"); - fprintf(fp, "#error \"Error! can't make correct RNA file from %s:%d, STUPID!\"\n", __FILE__, line); + fprintf(fp, + "#error \"Error! can't make correct RNA file from %s:%d, " + "check DNA properties.\"\n", + __FILE__, line); fclose(fp); } |