message: Restore exception handling for shader generation
diff: @@ -813,12 +813,6 @@ void Viewer::loadDocument(const mx::FilePath& filename, mx::DocumentPtr librarie
  newMaterials.push_back(mat);
  }
  }
  - }
  - catch (std::exception& e)
  - {
  - new ng::MessageDialog(this, ng::MessageDialog::Type::Warning, "Failed to load material", e.what());
  - return;
  - }
  size_t assignedGeoms = 0;
  if (!newMaterials.empty())
  @@ -881,6 +875,12 @@ void Viewer::loadDocument(const mx::FilePath& filename, mx::DocumentPtr librarie
  }
  }
  }
  + }
  + catch (std::exception& e)
  + {
  + new ng::MessageDialog(this, ng::MessageDialog::Type::Warning, "Failed to load material", e.what());
  + return;
  + }
  // Update material UI.
  updateMaterialSelections();
  