Issue #2969259 by arnested: Fixed error messages are not printed when running imports from the command line (for example when using drush).