1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

replace panic! by warn!

This commit is contained in:
Stefan Lankes 2017-07-29 10:59:28 +02:00
parent 7f169c4e75
commit cb843011c0

View file

@ -21,7 +21,11 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#![feature(rustc_private)]
extern crate regex;
#[macro_use]
extern crate log;
use regex::RegexSet;
use std::str;
@ -68,11 +72,11 @@ fn rename_sections(fname: String)
.expect("objcopy failed to start");
if !status.success() {
panic!("unable to rename sections!")
warn!("unable to rename sections!")
}
}
} else {
panic!("unable to determine section names");
warn!("unable to determine section names");
}
}