Fix typo in format() call

The second format variable was being passed to error().
Merge pull request #87 from gregier/typo

Fix typo in format() call