Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error message if patches do not apply because "patch" binary is missing. #329

Closed
grichards opened this issue Aug 20, 2020 · 6 comments

Comments

@grichards
Copy link

Hi there!

I was pulling my hair out tonight (lie, I'm already bald)... because I got a generic "Could not apply patch" error message trying to apply the Magento 2.3.4 PayFlow Pro / SameSite patch.... in PROD, but not in DEV.

Took me a couple hours to realize that patch wasn't installed on the server (actually, I didn't realize it... my CTO discovered it for me after I told him I was pulling my hair out).

He suggested that a more descriptive error message like "patch not found" would have been helpful.

Is that a good idea? If a binary dependency on the server is expected and not found, can this library be more informative?

Thanks!
Gabe

@cweagans
Copy link
Owner

Yeah, absolutely. Are you intending to submit a PR for this?

@grichards
Copy link
Author

Hello @cweagans, thanks for the reply.

Unfortunately not... my lame excuse is lack of time, and I'll spare you the details.

At least I hope my suggestion, if implemented, will be helpful to save someone else time in the future.

Gabe

@Renrhaf
Copy link

Renrhaf commented Dec 21, 2020

Thanks, this one helped me debug this issue on my Docker image.

@cjohansson
Copy link

Same thing here, thanks for creating this issue

@marclaporte
Copy link

Related: #262

@cweagans
Copy link
Owner

cweagans commented Feb 7, 2023

main works differently now. There has to be at least some patch mechanism available, but patch is no longer specifically required. If there aren't any usable patchers, an exception will be thrown.

@cweagans cweagans closed this as completed Feb 7, 2023
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 a pull request may close this issue.

5 participants