lib/ceedling/tasks_base.rake in ceedling-0.19.0 vs lib/ceedling/tasks_base.rake in ceedling-0.20.2

- old
+ new

@@ -12,11 +12,19 @@ [' Unity', File.join( CEEDLING_VENDOR, UNITY_ROOT_PATH)], ].each do |tool| name = tool[0] base_path = tool[1] - version_string = @ceedling[:file_wrapper].read( File.join(base_path, 'release', 'version.info') ).strip - build_string = @ceedling[:file_wrapper].read( File.join(base_path, 'release', 'build.info') ).strip + version_string = begin + @ceedling[:file_wrapper].read( File.join(base_path, 'release', 'version.info') ).strip + rescue + "UNKNOWN" + end + build_string = begin + @ceedling[:file_wrapper].read( File.join(base_path, 'release', 'build.info') ).strip + rescue + "UNKNOWN" + end puts "#{name}:: #{version_string.empty? ? '#.#.' : (version_string + '.')}#{build_string.empty? ? '?' : build_string}" end end desc "Set verbose output (silent:[#{Verbosity::SILENT}] - obnoxious:[#{Verbosity::OBNOXIOUS}])."