As initially brought up in it would be nice if there was a clear/robust way to programmatically obtain information why enableremote failed

May be even more generally -- if there was a robust way to obtain errors for other commands as well, e.g. such as fatal messages such as this operation must be run in a work tree