loadPubspecConfigOrNull function

Config? loadPubspecConfigOrNull(
  1. File pubspecFile, {
  2. File? buildFile,
})

Implementation

Config? loadPubspecConfigOrNull(File pubspecFile, {File? buildFile}) {
  try {
    return loadPubspecConfig(pubspecFile, buildFile: buildFile);
  } on FileSystemException catch (e, s) {
    log.severe('File system error when reading files.', e, s);
  } on InvalidSettingsException catch (e, s) {
    log.severe('Invalid settings in files.', e, s);
  }
  return null;
}