src/Pure/Tools/server_commands.scala
changeset 71747 1dd514c8c1df
parent 71726 a5fda30edae2
child 71896 ce06d6456cc8
equal deleted inserted replaced
71746:da0e18db1517 71747:1dd514c8c1df
    84                   "timeout" -> result.timeout,
    84                   "timeout" -> result.timeout,
    85                   "timing" -> result.timing.json)
    85                   "timing" -> result.timing.json)
    86               }))
    86               }))
    87 
    87 
    88       if (results.ok) (results_json, results, options, base_info)
    88       if (results.ok) (results_json, results, options, base_info)
    89       else throw new Server.Error("Session build failed: return code " + results.rc, results_json)
    89       else {
       
    90         throw new Server.Error("Session build failed: " + Process_Result.print_rc(results.rc),
       
    91           results_json)
       
    92       }
    90     }
    93     }
    91   }
    94   }
    92 
    95 
    93   object Session_Start
    96   object Session_Start
    94   {
    97   {
   134     {
   137     {
   135       val result = session.stop()
   138       val result = session.stop()
   136       val result_json = JSON.Object("ok" -> result.ok, "return_code" -> result.rc)
   139       val result_json = JSON.Object("ok" -> result.ok, "return_code" -> result.rc)
   137 
   140 
   138       if (result.ok) (result_json, result)
   141       if (result.ok) (result_json, result)
   139       else throw new Server.Error("Session shutdown failed: return code " + result.rc, result_json)
   142       else throw new Server.Error("Session shutdown failed: " + result.print_rc, result_json)
   140     }
   143     }
   141   }
   144   }
   142 
   145 
   143   object Use_Theories
   146   object Use_Theories
   144   {
   147   {