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

FileListIterator should not swallow exception and return null #524

Open
wowxunyl opened this issue Jun 9, 2021 · 1 comment
Open

FileListIterator should not swallow exception and return null #524

wowxunyl opened this issue Jun 9, 2021 · 1 comment

Comments

@wowxunyl
Copy link

wowxunyl commented Jun 9, 2021

        @Override
        public FileInfo[] next() {
            try {
                FileListing f = listFiles(bucket, prefix, marker, limit, delimiter);
                this.marker = f.marker == null ? "" : f.marker;
                return f.items;
            } catch (QiniuException e) {
                this.exception = e;
                return null;
            }
        }

here should fail fast so that user can know what happened

@wowxunyl
Copy link
Author

wowxunyl commented Jun 9, 2021

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