Skip to content

Example restrict-overwrite exemplifies failing unsafe #35

@ulzha

Description

@ulzha

I noted that the error handling in restrict-overwrite example seems unsuitable for production use:

console.log(`AQL query failed: ${x.message}`);

On an occasion where the AQL query were to fail, the error is spuriously silenced, and code proceeds with return { status: UploadStatus.UPLOAD_PROCEED };

The expected behavior would to be fail safely, that is, the error should lead to upload being stopped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions