mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-31 11:12:35 +01:00
add error for failed parsing of localization files
This commit is contained in:
parent
f150d139d5
commit
6e2dddeab9
@ -63,7 +63,7 @@ export class NitroLocalizationManager extends NitroManager implements INitroLoca
|
|||||||
{
|
{
|
||||||
if(!data) return;
|
if(!data) return;
|
||||||
|
|
||||||
if(!this.parseLocalization(data)) return;
|
if(!this.parseLocalization(data)) throw new Error(`Invalid json data for file ${url}`);
|
||||||
|
|
||||||
const index = this._pendingUrls.indexOf(url);
|
const index = this._pendingUrls.indexOf(url);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user