Skip to content

Commit

Permalink
Merge pull request assaf#419 from bfirsh/file-error-callback
Browse files Browse the repository at this point in the history
Fix typo in callback for file:// resource error
  • Loading branch information
assaf committed Oct 8, 2012
2 parents 29d4dfd + f931715 commit 58d09ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zombie/resources.coffee
Expand Up @@ -234,7 +234,7 @@ class Resources extends Array
FS.readFile Path.normalize(url.pathname), (error, data)=>
# Fallback with error -> callback
if error
callback err
callback error
else
# Turn body from string into a String, so we can add property getters.
resource.response = new HTTPResponse(url, 200, {}, String(data))
Expand Down

0 comments on commit 58d09ff

Please sign in to comment.