-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
cmd: validate repo/api file and print nicer error message #3219
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -287,6 +287,12 @@ | |
"hash": "QmQfeKxQtBN721pekQh6Jq24adFUjnU65YdY3GNczfuG2T", | ||
"name": "dir-index-html", | ||
"version": "1.0.3" | ||
}, | ||
{ | ||
"author": "Kubuxu", | ||
"hash": "QmXuBJ7DR6k3rmUEKtvVMhwjmXDuJgXXPUt4LQXKBMsU93", | ||
"name": "go-os-helper", | ||
"version": "0.0.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh, look at that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what am i looking at? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, ok, not it is good. Just a second ago GH wasn't showing the bracket that is bellow this line. |
||
} | ||
], | ||
"gxVersion": "0.4.0", | ||
|
@@ -295,4 +301,3 @@ | |
"name": "go-ipfs", | ||
"version": "0.4.5-dev" | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this ever happen from a passed in
apiAddrStr
? We don't want to accidentally tell the user about an api file if theyre manually specifying the addressThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This happens when for some reason the API File is empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, But theres no possible way we can end up with that scenario if the user passes in an api addr with
--api
right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea that is why I added check in 7512eb9