Skip to content

Conversation

@CameliaFarcas
Copy link
Collaborator

@jenny-flynn please review the details added to the log

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)
Copy link
Collaborator

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.

@ConorSmyth ConorSmyth changed the base branch from master to develop March 14, 2018 21:39
byteValue, err := ioutil.ReadAll(file)
if err != nil {
logrus.Error("Cannot Read File: " + filename)
logrus.Error("An error has occured : " + filename)
Copy link
Collaborator

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)
Copy link
Collaborator

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)
Copy link
Collaborator

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)
Copy link
Collaborator

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)
Copy link
Collaborator

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.

@jenny-flynn
Copy link
Collaborator

resolve conflicts in this PR before making changes to other PRs

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 this pull request may close these issues.

5 participants