danhale-git/craft

Failed commands (`craft cmd time set xxxx`) don't throw an error.

Closed this issue · 2 comments

Silent exit not indicating an issue

PS \craft> craft command myserver time set sdasdas
PS \craft>

Server logs:

time set 0600
Set the time to 24600
time set sdasdas
Syntax error: Unexpected "sdasdas": at "/time set >>sdasdas<<"

Consider checking the server logs for errors and reporting them to the user in the cmd package.

The appropriate solution is probably to log both the command and the response for the user.