add abort in case only one of manifest/base dir defined

This commit is contained in:
Joseph C. Osborn 2025-03-12 15:10:49 -07:00
parent d4d3aee457
commit 52e2ee9272

View File

@ -535,7 +535,10 @@ void platform_emscripten_mount_filesystems(void)
*/
int max_line_len = 1024;
if (!(fetch_manifest && fetch_base_dir))
{
printf("[FetchFS] must specify both FETCH_MANIFEST and FETCH_BASE_DIR\n");
abort();
}
printf("[FetchFS] read fetch manifest from %s\n", fetch_manifest);
FILE *file = fopen(fetch_manifest, "r");
if (!file)