Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

issambaccouch
Copy link

What kind of change does this PR introduce?

  • Bug Fix
  • Feature
  • Refactoring
  • Style
  • Build
  • Chore
  • Documentation
  • CI

Did you add tests for your changes?

  • Yes, my code is well tested
  • Not relevant

If relevant, did you update the documentation?

  • Yes, I've updated the documentation
  • Not relevant

Summary
This pull request addresses the need for user-friendly error messages

Does this PR introduce a breaking change?
No
Other information

@nikeee nikeee mentioned this pull request Dec 20, 2023
12 tasks
Copy link

@brendonco brendonco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working as expected.

@rolandjitsu rolandjitsu force-pushed the feat/human-readable-file-size-error branch from 5fc122b to 148f185 Compare October 2, 2024 15:47
};

export const getTooLargeRejectionErr = (maxSize) => {
export const getTooLargeRejectionErr = (maxSizeInBytes) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a unit test for this.


export const getTooLargeRejectionErr = (maxSize) => {
export const getTooLargeRejectionErr = (maxSizeInBytes) => {
const units = ["B", "KB", "MB", "GB", "TB"];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could live outside the func.

@rolandjitsu rolandjitsu mentioned this pull request Oct 2, 2024
12 tasks
@rolandjitsu
Copy link
Collaborator

@issambaccouch let me know if you can make the requested changes. Also note there's #1304 which is related to your change.

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

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.