Small Fix: Print name of identifier

This commit is contained in:
Jordi Baylina 2018-11-09 10:20:06 +01:00
parent 76815d0407
commit 79743dd7c7
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ module.exports = class Circuit {
getSignalIdx(name) {
if (typeof(this.signalName2Idx[name]) != "undefined") return this.signalName2Idx[name];
if (!isNaN(name)) return Number(name);
throw new Error("Invalid signal identifier: ", name);
throw new Error("Invalid signal identifier: "+ name);
}
// returns the index of the i'th output