Skip to content

Commit d54e969

Browse files
authored
Merge pull request #70 from xiabeifeng/patch-1
Update ReedSolomonDecoder.php
2 parents 7c15820 + 8d99f66 commit d54e969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Common/Reedsolomon/ReedSolomonDecoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private function runEuclideanAlgorithm($a, $b, $R)
132132
$t = $q->multiply($tLast)->addOrSubtract($tLastLast);
133133

134134
if ($r->getDegree() >= $rLast->getDegree()) {
135-
throw new IllegalStateException("Division algorithm failed to reduce polynomial?");
135+
throw new ReedSolomonException("Division algorithm failed to reduce polynomial?");
136136
}
137137
}
138138

0 commit comments

Comments
 (0)