Fixed an issue with error logging when paths are not specified (e.g. when using the --spec option)