diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2020-02-25 22:42:39 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2020-02-25 22:42:39 +0100 |
commit | 448d8c52a4d9dcb1be592df228fb402c6b3c507c (patch) | |
tree | 1e7db822cfb45a8a5ded17ba3320fdba46f8f6bb /src/renderer/runtime | |
parent | bfdecdbd3ca5e1b2c231da4609cb0a2fc3f31e88 (diff) | |
download | rpgedit-448d8c52a4d9dcb1be592df228fb402c6b3c507c.tar rpgedit-448d8c52a4d9dcb1be592df228fb402c6b3c507c.zip |
renderer: shaders: nicer error message syntax
Diffstat (limited to 'src/renderer/runtime')
-rw-r--r-- | src/renderer/runtime/view/renderer/shaders.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer/runtime/view/renderer/shaders.ts b/src/renderer/runtime/view/renderer/shaders.ts index c00568e..c9810bd 100644 --- a/src/renderer/runtime/view/renderer/shaders.ts +++ b/src/renderer/runtime/view/renderer/shaders.ts @@ -61,14 +61,14 @@ export class Shaders { private getAttribLocation(program: WebGLProgram, name: string): number { const ret = this.gl.getAttribLocation(program, name); - if (ret < 0) throw new Error("unable to get location of attribute '" + name + "'"); + if (ret < 0) throw new Error(`unable to get location of attribute '${name}'`); return ret; } private getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation { const ret = this.gl.getUniformLocation(program, name); - if (!ret) throw new Error("unable to get location of uniform '" + name + "'"); + if (!ret) throw new Error(`unable to get location of uniform '${name}'`); return ret; } |