Write inline script when error.