This error happens when the file was indeed found, but it wasn't an object file. The error should probably look like "provided path not an object file: {}"