redhat-developer / henge

This project has merged into Kompose.
https://github.com/skippbox/kompose
MIT License
14 stars 7 forks source link

Better error messages on file not found #57

Closed surajssd closed 8 years ago

surajssd commented 8 years ago

So os.Stat itself gives error of what operation was being performed, filename and error. So we don't need to frame it ourselves, but with directory check we need to frame an error.

If file not found

henge kubernetes
stat docker-compose.yml: no such file or directory

If file is a directory

henge kubernetes -f ./complex
check ./complex: is a directory
cdrage commented 8 years ago

LGTM, see comment though

kadel commented 8 years ago

:+1: