Remove unneeded prefix to error

This commit is contained in:
Sam Nolan 2022-04-23 09:47:48 -04:00
parent 9c92d93ca4
commit 79af95ed78
2 changed files with 3 additions and 3 deletions

View File

@ -90,11 +90,11 @@ describe("eval on distribution functions", () => {
testEval("log(2, uniform(5,8))", "Ok(Sample Set Distribution)") testEval("log(2, uniform(5,8))", "Ok(Sample Set Distribution)")
testEval( testEval(
"log(normal(5,2), 3)", "log(normal(5,2), 3)",
"Error(Math Error: Operation Error: Operation returned complex result)", "Error(Math Error: Operation returned complex result)",
) )
testEval( testEval(
"log(normal(5,2), normal(10,1))", "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("log(uniform(5,8))", "Ok(Sample Set Distribution)")
testEval("log10(uniform(5,8))", "Ok(Sample Set Distribution)") testEval("log10(uniform(5,8))", "Ok(Sample Set Distribution)")

View File

@ -35,7 +35,7 @@ module Error = {
| DistributionVerticalShiftIsInvalid => "Distribution Vertical Shift is Invalid" | DistributionVerticalShiftIsInvalid => "Distribution Vertical Shift is Invalid"
| ArgumentError(s) => `Argument Error ${s}` | ArgumentError(s) => `Argument Error ${s}`
| TooFewSamples => "Too Few Samples" | TooFewSamples => "Too Few Samples"
| OperationError(err) => `Operation Error: ${Operation.invalidOperationErrorToString(err)}` | OperationError(err) => Operation.invalidOperationErrorToString(err)
| PointSetConversionError(err) => SampleSetDist.pointsetConversionErrorToString(err) | PointSetConversionError(err) => SampleSetDist.pointsetConversionErrorToString(err)
| SparklineError(err) => PointSetDist.sparklineErrorToString(err) | SparklineError(err) => PointSetDist.sparklineErrorToString(err)
| Other(s) => s | Other(s) => s