Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Klr should gracefully exit if run on a folder without a project.json #157

Closed
Praburaj opened this issue May 8, 2014 · 1 comment
Closed
Labels

Comments

@Praburaj
Copy link
Contributor

Praburaj commented May 8, 2014

Today when k is being run on a folder where there is no project.json klr crashes with this exception. Instead we should print the message and gracefully shutdown klr.exe.

Unhandled Exception: System.AggregateException: One or more errors occurred. ---
> System.Exception: Unable to locate project.json
   at Microsoft.Framework.Runtime.DefaultHost.Initialize(DefaultHostOptions opti
ons)
   at Microsoft.Framework.Runtime.DefaultHost..ctor(DefaultHostOptions options,
IServiceProvider hostProvider)
   at Microsoft.Framework.ApplicationHost.Program.<Main>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.Framework.Runtime.Common.EntryPointExecutor.<Execute>d__1.MoveNe
xt()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at klr.host.Bootstrapper.<Main>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at klr.hosting.RuntimeBootstrapper.<Execute>d__1.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotifica
tion)
   at System.Threading.Tasks.Task`1.get_Result()
   at DomainManager.Execute(Int32 argc, Char** argv)
@Praburaj Praburaj added the bug label May 8, 2014
@davidfowl
Copy link
Member

Dupe of #119

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants