sindresorhus/ow

Custom error message #122

sarkistlt posted onGitHub

Thanks for the library really useful and simple! I so requests to add functionality to pass custom error message, and it was closed with introducing labels. But be able to create custom error message is really important if you wan't to use this library for customer facing validations.

Is it somewhere in the plans or I should just use some other library like validation.js or joi?

Thanks!


Yes, we should support this. Although for your use-case, Joi would probably be better choice. At least until we support this #92, and #58.

posted by sindresorhus about 6 years ago

thanks for quick reply, I'll wait)

posted by sarkistlt about 6 years ago

@issuehuntfest has funded $60.00 to this issue. See it on IssueHunt

posted by IssueHuntBot about 6 years ago

I would like to work on this. I am thinking that the message could be passed in as the last argument. @sindresorhus do you approve?

posted by whmountains about 6 years ago

Is there any progress on this issue?

posted by ansarizafar about 6 years ago

For anyone that wants to work on this, see the initial attempt and feedback in https://github.com/sindresorhus/ow/pull/156.

posted by sindresorhus about 5 years ago

@sindresorhus has rewarded $54.00 to @gentilefulvio. See it on IssueHunt

  • :moneybag: Total deposit: $60.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $6.00
posted by issuehunt-app[bot] over 4 years ago