We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d0729f commit b8ad012Copy full SHA for b8ad012
src/states.jl
@@ -8,13 +8,14 @@ given exit code (not equal zero).
8
"""
9
struct NonZeroExitCode <: Exception
10
exitcode::Int
11
-end
12
13
-function NonZeroExitCode(exitcode::Integer)
14
- exitcode == 0 && throw(ArgumentError("NonZeroExitCode exitcode must not be zero"))
15
- NonZeroExitCode(exitcode)
+ function NonZeroExitCode(exitcode::Int)
+ exitcode == 0 && throw(ArgumentError("NonZeroExitCode exitcode must not be zero"))
+ new(exitcode)
+ end
16
end
17
18
+NonZeroExitCode(exitcode::Integer) = NonZeroExitCode(Int(exitcode))
19
20
21
0 commit comments