Skip to content
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

[T3A4][T17-A3]Sin Yu Fan #1648

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

howitzerg
Copy link

Check if file exists prior to executing command.
Print message to user if file is missing.
Create file.

Print message to user if file is missing.
Create file.
@@ -106,6 +106,9 @@ private void recordResult(CommandResult result) {
private CommandResult executeCommand(Command command) {
try {
command.setData(addressBook, lastShownList);
if(!storage.fileExists()) {
ui.showFileDoesNotExistMessage(storage.getPath());

Choose a reason for hiding this comment

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

Indentation problem here?. Our coding standard requires you to use 4 spaces instead of tabs. You can configure Eclipse to convert tabs to spaces automatically.

@JoelT-92
Copy link

@howitzerg Some comments added. Please close the PR after reading comments. You may wish to read and attempt the activity again. This is because the activity is about handling exceptions, but in your submission, you did not make use of any exceptions. You can look at #273 as reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants