Improve nshell error logging

Signed-off-by: nigel <nigel.cook@hp.com>