core: handle image download cache

This commit is contained in:
undefined committed 2021-08-17 22:21:27 +08:00
1 parent 33b9b0b048
commit d0471b0de8
17 files changed
+132 -93

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ async function _parseDagJson(domainId: string, _dag: string): Promise<Tdoc['dag'
parsed.push(newNode);
}
} catch (e) {
throw new ValidationError('dag', [e.message]);
throw new ValidationError('dag', null, e.message);
}
return parsed;
}