Do not write json error message to stderr
This commit is contained in:
parent
1428eb81cf
commit
8d1ddcdf2d
5 changed files with 35 additions and 2 deletions
12
TestAssets/TestProjects/AppWithBomGlobalJson/Program.cs
Normal file
12
TestAssets/TestProjects/AppWithBomGlobalJson/Program.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace ConsoleApplication
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello World!");
|
||||
}
|
||||
}
|
||||
}
|
1
TestAssets/TestProjects/AppWithBomGlobalJson/global.json
Normal file
1
TestAssets/TestProjects/AppWithBomGlobalJson/global.json
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
20
TestAssets/TestProjects/AppWithBomGlobalJson/project.json
Normal file
20
TestAssets/TestProjects/AppWithBomGlobalJson/project.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"compilationOptions": {
|
||||
"emitEntryPoint": true
|
||||
},
|
||||
"dependencies": {
|
||||
"NETStandard.Library": "1.5.0-rc2-23930"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": "dnxcore50"
|
||||
}
|
||||
},
|
||||
"tools": {
|
||||
"dotnet-portable": {
|
||||
"version": "1.0.0",
|
||||
"target": "package"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -106,7 +106,7 @@ pal::string_t fx_muxer_t::resolve_cli_version(const pal::string_t& global_json)
|
|||
catch (const web::json::json_exception& je)
|
||||
{
|
||||
pal::string_t jes = pal::to_palstring(je.what());
|
||||
trace::error(_X("A JSON parsing exception occurred: %s"), jes.c_str());
|
||||
trace::info(_X("A JSON parsing exception occurred: %s"), jes.c_str());
|
||||
}
|
||||
trace::verbose(_X("CLI version is [%s] in global json file [%s]"), retval.c_str(), global_json.c_str());
|
||||
return retval;
|
||||
|
|
|
@ -89,7 +89,7 @@ bool runtime_config_t::ensure_parsed()
|
|||
catch (const web::json::json_exception& je)
|
||||
{
|
||||
pal::string_t jes = pal::to_palstring(je.what());
|
||||
trace::error(_X("A JSON parsing exception occurred: %s"), jes.c_str());
|
||||
trace::info(_X("A JSON parsing exception occurred: %s"), jes.c_str());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue