diff options
Diffstat (limited to 'tools/mzscript.c')
| -rw-r--r-- | tools/mzscript.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/mzscript.c b/tools/mzscript.c index 38b2f6d..a0d48d6 100644 --- a/tools/mzscript.c +++ b/tools/mzscript.c @@ -771,7 +771,7 @@ static int writeSpeakers(const char *prefix, const char *name, int scratchSwitch snprintf(path, sizeof path, "%s_speakers.h", prefix); f = fopen(path, "wb"); if (!f) { - fprintf(stderr, "cannot write %s\n", path); + fprintf(stderr, "cannot write %s (does the output folder exist?)\n", path); return 1; } fprintf(f, "/* made by mzscript, don't edit */\n\n#ifndef %s_SPEAKERS_H\n#define %s_SPEAKERS_H\n\n", upper, upper); @@ -786,7 +786,7 @@ static int writeSpeakers(const char *prefix, const char *name, int scratchSwitch snprintf(path, sizeof path, "%s_speakers.c", prefix); f = fopen(path, "wb"); if (!f) { - fprintf(stderr, "cannot write %s\n", path); + fprintf(stderr, "cannot write %s (does the output folder exist?)\n", path); return 1; } fprintf(f, "/* made by mzscript, don't edit */\n\n#include \"%s_speakers.h\"\n\n", base); @@ -908,7 +908,7 @@ int main(int argc, char **argv) snprintf(path, sizeof path, "%s.kons", prefix); f = fopen(path, "wb"); if (!f || fwrite(out.p, 1, out.n, f) != out.n || fclose(f) != 0) { - fprintf(stderr, "cannot write %s\n", path); + fprintf(stderr, "cannot write %s (does the output folder exist?)\n", path); return 1; } } |
