Remove unneeded prefix to error
This commit is contained in:
parent
9c92d93ca4
commit
79af95ed78
|
@ -90,11 +90,11 @@ describe("eval on distribution functions", () => {
|
|||
testEval("log(2, uniform(5,8))", "Ok(Sample Set Distribution)")
|
||||
testEval(
|
||||
"log(normal(5,2), 3)",
|
||||
"Error(Math Error: Operation Error: Operation returned complex result)",
|
||||
"Error(Math Error: Operation returned complex result)",
|
||||
)
|
||||
testEval(
|
||||
"log(normal(5,2), normal(10,1))",
|
||||
"Error(Math Error: Operation Error: Operation returned complex result)",
|
||||
"Error(Math Error: Operation returned complex result)",
|
||||
)
|
||||
testEval("log(uniform(5,8))", "Ok(Sample Set Distribution)")
|
||||
testEval("log10(uniform(5,8))", "Ok(Sample Set Distribution)")
|
||||
|
|
|
@ -35,7 +35,7 @@ module Error = {
|
|||
| DistributionVerticalShiftIsInvalid => "Distribution Vertical Shift is Invalid"
|
||||
| ArgumentError(s) => `Argument Error ${s}`
|
||||
| TooFewSamples => "Too Few Samples"
|
||||
| OperationError(err) => `Operation Error: ${Operation.invalidOperationErrorToString(err)}`
|
||||
| OperationError(err) => Operation.invalidOperationErrorToString(err)
|
||||
| PointSetConversionError(err) => SampleSetDist.pointsetConversionErrorToString(err)
|
||||
| SparklineError(err) => PointSetDist.sparklineErrorToString(err)
|
||||
| Other(s) => s
|
||||
|
|
Loading…
Reference in New Issue
Block a user