diff options
author | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-03-12 23:59:05 +0000 |
---|---|---|
committer | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-03-12 23:59:05 +0000 |
commit | 3b7ecfa6d4da684a635b2469c2d9a2e1e0ed0807 (patch) | |
tree | 2ce23cad6a0067480658001f0636efbdd3269b51 /proofs | |
parent | b66d099bdda2ce1cfaeeb7938346a348ef4d40cd (diff) |
invalid_arg instead of raise (Invalid_argement ...)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16270 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'proofs')
-rw-r--r-- | proofs/tactic_debug.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proofs/tactic_debug.ml b/proofs/tactic_debug.ml index afbc8bbe4..5952fd29c 100644 --- a/proofs/tactic_debug.ml +++ b/proofs/tactic_debug.ml @@ -91,14 +91,14 @@ let run_com inst = let s = String.sub inst i (String.length inst - i) in if inst.[0] >= '0' && inst.[0] <= '9' then let num = int_of_string s in - if num<0 then raise (Invalid_argument "run_com"); + if num<0 then invalid_arg "run_com"; skip:=num;skipped:=0 else breakpoint:=Some (possibly_unquote s) else - raise (Invalid_argument "run_com") + invalid_arg "run_com" else - raise (Invalid_argument "run_com") + invalid_arg "run_com" (* Prints the run counter *) let run ini = |