improve error message to include --prefix