Skip to content
Snippets Groups Projects
Commit 6d0d087e authored by Andre Maroneze's avatar Andre Maroneze
Browse files

Merge branch 'fix/ivette/rejected-request' into 'master'

[Ivette] Adds a better error message when a request is rejected by Frama-C.

See merge request frama-c/frama-c!4637
parents 767b1cd1 f02ebf08
No related branches found
No related tags found
No related merge requests found
......@@ -878,7 +878,10 @@ client.onKilled((id: string) => {
client.onRejected((id: string) => {
const p = pending.get(id);
if (p) {
p.reject('rejected');
const err =
'Request rejected by Frama-C: the related plugin may not be loaded, ' +
'or the Frama-C version is incompatible.';
p.reject(err);
_resolved(id);
logModel.registerRequest(
{ rid: id, statut: statutLog.REJECTED }
......
......@@ -279,6 +279,7 @@ let process_request (server : 'a server) (request : 'a request) : unit =
begin
match find request with
| None ->
Senv.warning ~once:true "Unknown request %s" request ;
Senv.debug "Rejected %a" server.pretty id ;
Queue.push (`Rejected id) server.q_out
| Some( kind , handler ) ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment