1 2 3 4 5 6 7 8 9 10 11 12
// SPDX-License-Identifier: Apache-2.0 use crate::{ErrorKind, NmstateError}; pub(crate) fn np_error_to_nmstate( np_error: nispor::NisporError, ) -> NmstateError { NmstateError::new( ErrorKind::Bug, format!("{}: {}", np_error.kind, np_error.msg), ) }