messagepack-cli 0.1.0

CLI tool to convert MessagePack data to JSON and vice versa.
Documentation
//! Errors that happen during the execution.

use thiserror::Error;

/// CLI error.
#[derive(Debug, Error)]
pub enum Error {
	/// Multiple conversion directions specified.
	#[error("Multiple conversion directions specified")]
	MultipleConversionDirections,

	/// Error reading input file.
	#[error("Error reading input file")]
	FileRead,
	/// Error writing output file.
	#[error("Error writing output file")]
	FileWrite,

	/// Automatic conversion direction detection error.
	#[error("Failed automatic converstion direction detection")]
	AutomaticDetection,

	/// Error transcoding the data between formats.
	#[error("Error transcoding between data formats")]
	Transcoding,
}