raise plotly error if users try to write to files without permission.