Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filer.open actually ignores onError param #38

Closed
shabunc opened this issue Oct 2, 2013 · 1 comment
Closed

filer.open actually ignores onError param #38

shabunc opened this issue Oct 2, 2013 · 1 comment

Comments

@shabunc
Copy link

shabunc commented Oct 2, 2013

Minimal example

 var filer = new Filer();
  filer.init({size: 1024 * 1024}, function() {
      filer.open('xxx.data', function() {
        console.log('SUCCESS');
      }, function(e) {
        console.log('ERROR', e);
      });
  });

What do I expect to see:
If xxx.data does not exist, second function should be executed.

What do I actually see:
Uncaught Error: "filesystem:chrome-extension://fcgfaidpicddcilhjhafmmcgfodijhjd/temporary//xxx.data" does not exist.

shabunc pushed a commit to shabunc/filer.js that referenced this issue Oct 2, 2013
@shabunc shabunc closed this as completed Oct 2, 2013
@shabunc
Copy link
Author

shabunc commented Oct 2, 2013

I guess this should be closed, since there's a PR already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant