Migrated utils/errors.rs to Rust v0.7