Issue #3301239 by @immaculate.x : Check if the file is correctly opened before...
requested to merge issue/drupal-3301239:3301239-improve-error-message-and-exception-handling into 11.x
Issue #3301239 by @immaculate.x : Check if the file is correctly opened before trying to write the translation file contents to it.
Closes #3301239