-
Notifications
You must be signed in to change notification settings - Fork 2
log messages updated for getAllTestCases & getAllTestSuites functions #76
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
base: develop
Are you sure you want to change the base?
Conversation
| file, err := os.Open(fmt.Sprintf("%s%s", testCasePathDir, filename)) | ||
| if err != nil { | ||
| logrus.Error("Cannot Open File: " + filename) | ||
| logrus.Error("File not found: " + filename) |
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.
Would it not be better to say something like:
logrus.Error("Error opening the file: ", err )
I would also add the error as in example.
| byteValue, err := ioutil.ReadAll(file) | ||
| if err != nil { | ||
| logrus.Error("Cannot Read File: " + filename) | ||
| logrus.Error("An error has occured : " + filename) |
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.
log the error. this will help with debugging the issue.
| err = xml.Unmarshal(byteValue, testCase) | ||
| if err != nil { | ||
| logrus.Error("Cannot Unmarshall File: " + filename) | ||
| logrus.Error("Bad request: " + filename) |
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.
log the error. this will help with debugging the issue.
| file, err := os.Open(fmt.Sprintf("%s%s", testSuitePathDir, filename)) | ||
| if err != nil { | ||
| logrus.Error("Cannot open file: ", filename) | ||
| logrus.Error("File not found: ", filename) |
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.
log the error. this will help with debugging the issue.
| byteValue, err := ioutil.ReadAll(file) | ||
| if err != nil { | ||
| logrus.Error("Cannot Read File: ", filename) | ||
| logrus.Error("An error has occured: ", filename) |
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.
log the error. this will help with debugging the issue.
| err = xml.Unmarshal(byteValue, testSuite) | ||
| if err != nil { | ||
| logrus.Error("Cannot Unmarshall: ", filename) | ||
| logrus.Error("Bad request: ", filename) |
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.
log the error. this will help with debugging the issue.
|
resolve conflicts in this PR before making changes to other PRs |
@jenny-flynn please review the details added to the log