lib/frameit/strings_parser.rb in frameit-2.7.0 vs lib/frameit/strings_parser.rb in frameit-2.8.0

- old
+ new

@@ -23,9 +23,13 @@ UI.error "Error parsing #{path} line #{index + 1}: '#{line}'" UI.verbose "#{ex.message}\n#{ex.backtrace.join('\n')}" end end + if result.empty? + UI.error "Empty parsing result for #{path}. Please make sure the file is valid and UTF16 Big-endian encoded" + end + result end end end