Skip to content

Commit

Permalink
Make error messages a const (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
matbesancon committed Nov 9, 2020
1 parent 2c43379 commit ce82216
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/error.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error_message = [
const error_message = [
"Dimension too large",
"Improper input format",
"Negative matrix size",
Expand All @@ -15,7 +15,9 @@ error_message = [
"Row index out of range",
"Col index out of range",
"LP cycling",
"Numerically inconsistent"]
"Numerically inconsistent",
]

function myerror(err::Cdd_ErrorType)
if err < 0 || err > 17
error("This should not happen, please report this bug")
Expand Down

0 comments on commit ce82216

Please sign in to comment.