Can you explain under which situation this change will catch an error? And what does `$config` contain on success and on error?