Return error if library not found.