[WIP] Enhance Error Handling: Centralized File Access and Response Utilities#25
Draft
utukku77 wants to merge 5 commits intoHermanKoii:mainfrom
Draft
[WIP] Enhance Error Handling: Centralized File Access and Response Utilities#25utukku77 wants to merge 5 commits intoHermanKoii:mainfrom
utukku77 wants to merge 5 commits intoHermanKoii:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enhance Error Handling: Centralized File Access and Response Utilities
Description
Summary of Work
This pull request introduces a comprehensive error handling system for file-related operations, improving application robustness and providing consistent error responses.
Key Improvements
Motivation
To provide a more reliable and predictable error handling mechanism across the application, with special focus on file access and CDN resource interactions.
Changes Made
FileAccessErrorcustom error class in TypeScriptfileErrorHandlermiddleware for expresscheckFileAccessutility function to safely validate file permissionscreateErrorResponseandcreateErrorLogutilities in error-response.jsERROR_TYPESfor consistent error reportingTests and Verification
PRs Merged
The following pull requests have been merged:
Signatures
Staking Key
9sZLgvyCWub3q8JAdQcDhDEdePW4Tefv4PeqcoY1Caa1: 2iTrxpVkSLRnUS6aBiQgnTuUepeNU8iqduEKDgLPcZEj7a5EsbHdHn4QczXGcheEQzfrfgKxy6uB2LR9NqafJLznnbsdhqXRvNJd3sNtJdsfsKPACutQsFkmxKtEEzmdC1qNz33HSos43UpvdTXyb6j2pYUd1kBGeyd4uAkUY9vqqkJQPouQhEp8CeDmKp5L2cKPNLq3f3za7MTkv6r5KVR1yTMpDir73NgkmKYgdUB8Zc1mWDhakDZVTLUtQHZyQNh5om3SDfTnK6Vfk97y8D63WUCj9c2sqcaPfYq2kkYG4uqRcxZDWbLsAuSZ4QP3Tw75Eeom8CPvmA1Q4z2xVUpHFNipiomK8Aq8qBizb5szpSESLU6JtVVkHYNDjWPWevYZ4HhxUAGZLLxLvbMonAHC8hGNP8rdJuq6
Public Key
BVJGcniy3f2wFv8LACVxSpxabREZ9Vq85DVJ1kavEjeo: r4D4YCPF7wiHMptbBn5B43mwFh4iR48r1aLPpCsS9VUCWhta5wwwYgYsri6o7xmXvqvwYZbgjmcV4A6Uqn13DWrNMTsowBrhrWE6YnTookCJ4RLRRaSvEitFqww4y6nGYTvBiXiJyweSTtgwMWBcrsRamMh13jnkBF7ND1Q8qwXonqX5jXjo8qi5gXcKXaHQyuyEXejqcCfhs9TfxztDjdgvMgsz93iHFDdxTPhUfWNDBZAvMG9jhSNNBLmpZHSJpqewDe4XDYh5M1JDSaq3RjmMJg8mj6T1nzQP7hU1A8UWoDzSvrLknhJsvJn993HnBWrRdmsa3CUi6gR3hGbZGz1r77Gq6HwfUCy5GCXArZxSdL6VUKzoSUnENzQFN1udqhofa7SP5VNdyAdUU6zoTXBSRVJL3Ctcg7W