Open sweep-ai[bot] opened 9 months ago
convertPheno_client/src/code/utils/errorMessages.js
β
Check convertPheno_client/src/code/utils/errorMessages.js with contents:
Ran GitHub Actions for 4c14f05aed58880f4b026be8d779845726f44861:
convertPheno_client/src/code/views/conversion/Conversion.jsx
β
Check convertPheno_client/src/code/views/conversion/Conversion.jsx with contents:
Ran GitHub Actions for 8609418da0d483eb7874f642d091281f1da284c2:
PR Feedback (click)
Description
This pull request aims to improve the user experience by providing more user-friendly error messages. It includes changes to the
errorMessages.js
file in theconvertPheno_client/src/code/utils
directory and theConversion.jsx
file in theconvertPheno_client/src/code/views/conversion
directory.Summary
errorMessages
object in theerrorMessages.js
file to map specific error messages to more user-friendly messages.getFriendlyErrorMessage
function in theerrorMessages.js
file to retrieve the corresponding user-friendly message based on the error message.Conversion.jsx
file to import thegetFriendlyErrorMessage
function from theerrorMessages.js
file.ErrorFallback
component in theConversion.jsx
file to display the user-friendly error message instead of the original error message.Files:
convertPheno_client/src/code/utils/errorMessages.js
convertPheno_client/src/code/views/conversion/Conversion.jsx
Fixes #13.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: