Skip to content

Conversation

@MVikhona
Copy link
Contributor

@MVikhona MVikhona commented Aug 6, 2016

Adding Clear Inventory Form to let refresh existing Inventory at the start of semester by Mess System Managers themselves.
Till now they call us to do it from MySql Workbench.
I hope it will help.

Adding Clear Inventory Form to let refresh existing Inventory at the start of semester by Mess System Managers themselves.
Till now they call us to do it from MySql Workbench.
I hope it will help.
Catch ex As Exception
MsgBox("Error Occured ! Please contact SSMS Tech Team !!")
MsgBox(ex.Message.ToString)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good that you have added a try-catch here but this error handling message actually does not help much. Not even for us developers while debugging the problem. I am not picking on this specific message, but most of the messages all over the code are like this.
I think a simple but related message in MsgBox would be much better here.

For a better way for future, I suggest that we should add a logging interface (to log to a log file), where not only the exceptions but all the operations are also logged with their Timestamp so that it becomes simpler to debug stuff (and all the other MsgBox msgs also can be changed to be simple but related).

It would be great if you could look into it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I remove Try- Catch in this file? or leave it ?
Yes, I will look into logging interface

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. You should obviously keep it. I just suggested that you could improve the message may be.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we merge this patch to main branch?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not tested it; I suppose @AAP67 can take a look and merge it after testing.

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.

3 participants