diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index a53fd90db..2c1239cd5 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -1010,7 +1010,11 @@ var LookingGlass = class LookingGlass { } getResult(idx) { - return this._results[idx - this._offset].o; + try { + return this._results[idx - this._offset].o; + } catch (e) { + throw new Error(`Unknown result at index ${idx}`); + } } toggle() {