Skip to content

Commit

Permalink
make error public
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault-magnet committed Feb 3, 2023
1 parent 1ea8dad commit f57ccb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/fuels-code-gen/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ use std::{
io,
};

pub struct Error(pub(crate) String);
pub struct Error(pub String);

impl Error {
pub(crate) fn combine<T: Into<Self>>(self, err: T) -> Self {
pub fn combine<T: Into<Self>>(self, err: T) -> Self {
error!("{} {}", self.0, err.into().0)
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/fuels-code-gen/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod error;
pub use program_bindings::*;

pub mod error;
mod program_bindings;
pub mod utils;

pub use program_bindings::*;

0 comments on commit f57ccb9

Please sign in to comment.