Skip to content

Commit a6c50a4

Browse files
committed
Raise errors with explict types
1 parent 3e1c633 commit a6c50a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/sass/Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ file 'protoc.exe' do |t|
3333
end
3434

3535
file 'dart-sass/sass' do |t|
36-
raise if ENV.key?('DART_SASS')
36+
raise RuntimeError if ENV.key?('DART_SASS')
3737

3838
gem_install 'sass-embedded', SassConfig.gem_version, SassConfig.gem_platform do |dir|
3939
mv File.absolute_path("ext/sass/#{t.name}", dir), t.name
@@ -184,7 +184,7 @@ module FileUtils
184184
entry = entries.nextElement
185185
name = entry.getName
186186
path = dest_path.resolve(name).normalize
187-
raise unless path.startsWith(dest_path)
187+
raise SecurityError unless path.startsWith(dest_path)
188188

189189
Rake.rake_output_message " inflating: #{name}" if Rake::FileUtilsExt.verbose_flag
190190

0 commit comments

Comments
 (0)