Skip to content

Commit

Permalink
[Sass] Don't die if sassc files aren't long enough.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Feb 14, 2010
1 parent 83eb387 commit 98f20b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions doc-src/SASS_CHANGELOG.md
Expand Up @@ -3,6 +3,14 @@
* Table of contents
{:toc}

## 2.2.20 (Unreleased)

* If the cache file for a given Sass file is corrupt
because it doesn't have enough content,
produce a warning and read the Sass file
rather than letting the exception bubble up.
This is consistent with other sorts of sassc corruption handling.

## 2.2.19

[Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.18).
Expand Down
2 changes: 1 addition & 1 deletion lib/sass/files.rb
Expand Up @@ -104,7 +104,7 @@ def try_to_read_sassc(filename, compiled_filename, sha)
return unless f.readline("\n").strip == sha
return Marshal.load(f.read)
end
rescue TypeError, ArgumentError => e
rescue EOFError, TypeError, ArgumentError => e
warn "Warning. Error encountered while reading cache #{compiled_filename}: #{e}"
end

Expand Down

0 comments on commit 98f20b5

Please sign in to comment.