summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2022-01-11 15:17:57 +0530
committerSunil Shetye2022-01-11 15:17:57 +0530
commit0ab717a21d779a9756aad84c52045d6fdbbae12f (patch)
tree2cfb6f0f6ec34d5c11795c102345719b51ce144d
parent062089a45909caa7719b69341d0af54ebaaeee62 (diff)
downloadCommon-Interface-Project-0ab717a21d779a9756aad84c52045d6fdbbae12f.tar.gz
Common-Interface-Project-0ab717a21d779a9756aad84c52045d6fdbbae12f.tar.bz2
Common-Interface-Project-0ab717a21d779a9756aad84c52045d6fdbbae12f.zip
throw object instead of literal
-rw-r--r--blocks/eda-frontend/src/utils/Sigbuilder-graph.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/blocks/eda-frontend/src/utils/Sigbuilder-graph.js b/blocks/eda-frontend/src/utils/Sigbuilder-graph.js
index c467ec3a..30bde79c 100644
--- a/blocks/eda-frontend/src/utils/Sigbuilder-graph.js
+++ b/blocks/eda-frontend/src/utils/Sigbuilder-graph.js
@@ -259,7 +259,7 @@ export function editPointsValue (graphObject, graphParameters, pointsHistory) {
document.getElementById("messageLabel").innerHTML = "ERROR IN SPLINE : " + getmethod(graphParameters.mtd)
wind.destroy()
graphWind.style.pointerEvents = "auto"
- throw "incorrect"
+ throw new Error("incorrect")
}
}
}
@@ -302,7 +302,7 @@ export function addPointsOnChart (graphParameters, pointsHistory, xValue, yValue
sigbuilderGraph.setTitle(null, { text: updateSubtitleForSigbuilderGraph(graphParameters.points, graphParameters.mtd, graphParameters.xmaxTitle, graphParameters.PeriodicOption) })
} else {
document.getElementById("messageLabel").innerHTML = "ERROR IN SPLINE : " + getmethod(graphParameters.mtd)
- throw "incorrect"
+ throw new Error("incorrect")
}
}
}