Merge pull request #348 from NixOS/fix/fail-with-github
set_with_description actually does the thing, set_url is lies
This commit is contained in:
commit
b3a924b100
|
@ -1,4 +1,9 @@
|
||||||
#![recursion_limit = "512"]
|
#![recursion_limit = "512"]
|
||||||
|
// Replacing .map(|arch| arch.to_string())
|
||||||
|
// with .map(systems::System::to_string)
|
||||||
|
//
|
||||||
|
// seems much less clear and I just don't like it :)
|
||||||
|
#![allow(clippy::redundant_closure)]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
|
|
|
@ -70,8 +70,8 @@ impl<E: stats::SysEvents> EvaluationWorker<E> {
|
||||||
Err(())
|
Err(())
|
||||||
}
|
}
|
||||||
Err(eval::Error::FailWithGist(msg, filename, content)) => {
|
Err(eval::Error::FailWithGist(msg, filename, content)) => {
|
||||||
status.set_with_description(&msg, hubcaps::statuses::State::Failure);
|
|
||||||
status.set_url(make_gist(&gists, &filename, Some("".to_owned()), content));
|
status.set_url(make_gist(&gists, &filename, Some("".to_owned()), content));
|
||||||
|
status.set_with_description(&msg, hubcaps::statuses::State::Failure);
|
||||||
Err(())
|
Err(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue