Well if we would like to be very strict we could say "okna dialogowego: Otwórz plik". And it would mean "There was an error opening the dialog: Open File". And while it is understandable it I don't think it's better.