valkyrie-errors 0.0.3

Error types for valkyrie language
Documentation
1
2
3
4
5
6
7
8
9
use crate::ValkyrieError;
use json5::Error;

impl From<Error> for ValkyrieError {
    fn from(value: Error) -> Self {
        // can't get the span from the error
        ValkyrieError::runtime_error(value.to_string())
    }
}