Bug 496

Summary: No error message upon invalid commands on Windows 10
Product: Group 4 Reporter: kykao2-c
Component: MainAssignee: Paton <plchan83-c>
Status: RESOLVED FIXED    
Severity: enhancement CC: aaronlii2-c, chlam286-c, kykao2-c, sharitsang97
Priority: Lowest    
Version: unspecified   
Hardware: PC   
OS: Windows   
Deadline: 2020-11-07   
Attachments: No error message upon invalid commands

Description kykao2-c 2020-11-28 18:34:09 HKT
Created attachment 60 [details]
No error message upon invalid commands

The program does not remind the user of an incorrect command whenever one is received. This lowers the responsiveness of the program, which may confuse the user that the program has malfunctioned.

Device specification:
Windows 10 version 20H2 build number 10.0.19042 [Device: HP Spectre x360 13]

Severity: enhancement

Steps to reproduce the bug: 
input:  1. "deleteDatabase"
     or 2. "checkAdmin"
*output:   /

Observation:
*: The program does not give any output.

Expectation:
The expected output is to return an error message regarding invalid command to users.

Example:
input:  1. "deleteDatabase"
output:   "Invalid command."
        2. "checkAdmin"
output:   "Invalid command."

Solution:
Add an error-handling message whenever an invalid command is received.
Comment 1 Paton 2020-11-28 18:36:37 HKT
Bug fixed. Now the program returns an error message to remind users of invalid commands.

Example:
input:  "checkAdmin"
output: "Incorrect command."

- Paton