forked from M-Labs/nac3
ModelError ///
This commit is contained in:
parent
5f95d1530a
commit
1e65f16f1e
|
@ -11,7 +11,7 @@ use crate::codegen::{CodeGenContext, CodeGenerator};
|
||||||
pub struct ModelError(pub String);
|
pub struct ModelError(pub String);
|
||||||
|
|
||||||
impl ModelError {
|
impl ModelError {
|
||||||
// Append a context message to the error.
|
/// Append a context message to the error.
|
||||||
pub(super) fn under_context(mut self, context: &str) -> Self {
|
pub(super) fn under_context(mut self, context: &str) -> Self {
|
||||||
self.0.push_str(" ... in ");
|
self.0.push_str(" ... in ");
|
||||||
self.0.push_str(context);
|
self.0.push_str(context);
|
||||||
|
|
Loading…
Reference in New Issue