Don't print errors when there aren't any messages
Minor refactoring
Console rake task