Stopping sending literal errors
Errors now must be of "Error" type. Rule added in eslint.
This commit is contained in:
@@ -48,7 +48,7 @@ export class CustomizeScene extends AbstractCharacterScene {
|
||||
bodyResourceDescription.level < 0 ||
|
||||
bodyResourceDescription.level > 5
|
||||
) {
|
||||
throw "Texture level is null";
|
||||
throw new Error("Texture level is null");
|
||||
}
|
||||
this.layers[bodyResourceDescription.level].unshift(bodyResourceDescription);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user