Changed order of printing error because error seemed related to previous command.
Unit test fix
Merge pull request #20 from rogierschouten/master

Changed order of printing error because error seemed related to previous...