Fixing the error type returned when using -dot
The error stack was empty, but the err value itself was not nil. This was causing -dot to return an error message, even when there was no actual error.