Skip to content

Commit

Permalink
Issue #82 (enhancements): More specific error message in case of file…
Browse files Browse the repository at this point in the history
… resolution fails related to //css_import
  • Loading branch information
oleg-shilo committed Aug 16, 2017
1 parent fbefe67 commit dcb7b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static Exception ToNewException(this Exception ex, string message, bool e
}
var constructor = ex.GetType().GetConstructor(new Type[] { typeof(string), typeof(Exception) });
if (constructor != null)
return (Exception)constructor.Invoke(new object[] { message, childException });
return (Exception)constructor.Invoke(new object[] { topLevelMessage, childException });
else
return new Exception(message, childException);
}
Expand Down

0 comments on commit dcb7b85

Please sign in to comment.