Fixes a unknown resources error.

This occured when calling ping with bad credentials. Not very common,
but it did look wierd in the command line.