diff --git a/src/NerdBank.GitVersioning/VersionFile.cs b/src/NerdBank.GitVersioning/VersionFile.cs
index 02f78a94f..818fd7a1f 100644
--- a/src/NerdBank.GitVersioning/VersionFile.cs
+++ b/src/NerdBank.GitVersioning/VersionFile.cs
@@ -123,7 +123,7 @@ public string SetVersion(string projectDirectory, VersionOptions version, bool i
}
///
- /// Tries to read a version.json file from the specified string, but favors returning null instead of throwing a .
+ /// Tries to read a version.json file from the specified string, but favors returning null instead of throwing a .
///
/// The content of the version.json file.
/// Directory that this version.json file is relative to the root of the repository.
@@ -134,7 +134,7 @@ public string SetVersion(string projectDirectory, VersionOptions version, bool i
{
return JsonConvert.DeserializeObject(jsonContent, VersionOptions.GetJsonSettings(repoRelativeBaseDirectory: repoRelativeBaseDirectory));
}
- catch (JsonSerializationException)
+ catch (JsonException)
{
return null;
}