Do not write json error message to stderr

This commit is contained in:
Pavel Krymets 2016-03-31 14:39:33 -07:00
parent 1428eb81cf
commit 8d1ddcdf2d
5 changed files with 35 additions and 2 deletions

View file

@ -0,0 +1,12 @@
using System;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}

View file

@ -0,0 +1 @@
{}

View 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"
}
}
}

View file

@ -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;

View file

@ -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;