Parcourir la source

Bug fix: DocX.Load not throwing FileNotFoundException

master
coffeycathal_cp il y a 16 ans
Parent
révision
25e1463e2b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      DocX/DocX.cs

+ 1
- 1
DocX/DocX.cs Voir le fichier

@@ -689,7 +689,7 @@ namespace Novacode
public static DocX Load(string filename)
{
if (!File.Exists(filename))
throw new FileNotFoundException(string.Format("File could not be found {0}"));
throw new FileNotFoundException(string.Format("File could not be found {0}", filename));
// Open the docx package
wdDoc = WordprocessingDocument.Open(filename, true);

Chargement…
Annuler
Enregistrer