chiark
/
gitweb
/
~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
596f3d9
)
pock: Report `duplicate label' as an expected error.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 7 Feb 2019 11:27:20 +0000
(11:27 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 7 Feb 2019 11:43:18 +0000
(11:43 +0000)
It shouldn't result in a backtrace.
pock
patch
|
blob
|
blame
|
history
diff --git
a/pock
b/pock
index 053cb3689ff6073a55faf2de6a5e38e9cb0fd302..3d9f66ba35e3e0110df515eb0eacfb32414af2a5 100644
(file)
--- a/
pock
+++ b/
pock
@@
-662,7
+662,7
@@
class PrimeProof (object):
## If the label is already taken then we have a problem.
if step.label in me._steps:
- raise
Value
Error('duplicate label `%s\'' % step.label)
+ raise
Expected
Error('duplicate label `%s\'' % step.label)
## Store the proof step.
me._pmap[step.p] = step.label