Skip to content

Commit

Permalink
add exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
“hphan9” committed Oct 2, 2021
1 parent f9943a5 commit 6b0c23c
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 2 deletions.
Binary file modified .vs/shinny-ssg/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file modified .vs/shinny-ssg/v16/.suo
Binary file not shown.
6 changes: 5 additions & 1 deletion Program.cs
Expand Up @@ -11,7 +11,7 @@ static class Globals

class Program
{
static void Main(string[] args)
static int Main(string[] args)
{

var destination = @".\dist";
Expand Down Expand Up @@ -88,12 +88,16 @@ static void Main(string[] args)
catch (CommandParsingException ex)
{
Console.Error.WriteLine(ex.Message);
return -1;
}
catch (Exception ex)
{
Console.Error.WriteLine("There is an error with the transfer process");
Console.Error.WriteLine(ex.Message);
return -1;
}

return 0;
}

}
Expand Down
2 changes: 1 addition & 1 deletion Properties/launchSettings.json
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"shinny-ssg": {
"commandName": "Project",
"commandLineArgs": "-i C:\\Users\\khoit\\Desktop\\OSD600\\Sherlock-Holmes-Selected-Stories -l fr"
"commandLineArgs": "-i -l fr"
}
}
}
Binary file modified bin/Debug/netcoreapp3.1/shinny-ssg.dll
Binary file not shown.
Binary file modified bin/Debug/netcoreapp3.1/shinny-ssg.pdb
Binary file not shown.
Binary file modified obj/Debug/netcoreapp3.1/shinny-ssg.csprojAssemblyReference.cache
Binary file not shown.
Binary file modified obj/Debug/netcoreapp3.1/shinny-ssg.dll
Binary file not shown.
Binary file modified obj/Debug/netcoreapp3.1/shinny-ssg.pdb
Binary file not shown.

0 comments on commit 6b0c23c

Please sign in to comment.