Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ensure all LibGit2SharpException derived types exposes a string.Format friendly ctor #1199

Closed
@nulltoken

Description

@nulltoken

For each LibGit2SharpException derived type, find its usage and when a construct similar to the following one exist...

if (res == (int)GitErrorCode.Exists)
{
    throw new EntryExistsException(
        String.Format("A custom transport for '{0}' is already registered", prefix));
}

...add a new ctor to the type and update the calling code to:

if (res == (int)GitErrorCode.Exists)
{
    throw new EntryExistsException(CultureInfo.InvariantCulture,
        "A custom transport for '{0}' is already registered", prefix);
}

cf #1095, #1198

/cc @rooflz

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions