Added "rule" to error-object
Merged in pull request #44 from jhnns.