If the source file given to the layertools is not an archive file, the error message says that the file cannot be found. That might be confusing, if the file actually exists but "only" has the wrong suffix. I think splitting the assertion into two separate ones gives more precise error messages.

Comment From: pivotal-cla

@nilshartmann Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@nilshartmann Thank you for signing the Contributor License Agreement!

Comment From: snicoll

@nilshartmann thank you for making your first contribution to Spring Boot.