add abort in case only one of manifest/base dir defined
This commit is contained in:
parent
d4d3aee457
commit
52e2ee9272
|
@ -535,7 +535,10 @@ void platform_emscripten_mount_filesystems(void)
|
||||||
*/
|
*/
|
||||||
int max_line_len = 1024;
|
int max_line_len = 1024;
|
||||||
if (!(fetch_manifest && fetch_base_dir))
|
if (!(fetch_manifest && fetch_base_dir))
|
||||||
|
{
|
||||||
printf("[FetchFS] must specify both FETCH_MANIFEST and FETCH_BASE_DIR\n");
|
printf("[FetchFS] must specify both FETCH_MANIFEST and FETCH_BASE_DIR\n");
|
||||||
|
abort();
|
||||||
|
}
|
||||||
printf("[FetchFS] read fetch manifest from %s\n", fetch_manifest);
|
printf("[FetchFS] read fetch manifest from %s\n", fetch_manifest);
|
||||||
FILE *file = fopen(fetch_manifest, "r");
|
FILE *file = fopen(fetch_manifest, "r");
|
||||||
if (!file)
|
if (!file)
|
||||||
|
|
Loading…
Reference in New Issue