Skip to content

Commit db562b6

Browse files
committed
feature: Extend plugin errors
1 parent 233689e commit db562b6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

plugins/src/errors.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use std::io::Error as IoError;
22

3+
use crate::options::PluginOption;
4+
35
pub type DevrcPluginResult<T> = Result<T, DevrcPluginError>;
46

57
#[derive(Debug)]
@@ -10,6 +12,7 @@ pub enum DevrcPluginError {
1012
Signal,
1113
IoError(IoError),
1214
AnyhowError(anyhow::Error),
15+
InvalidOption(String, PluginOption),
1316
}
1417

1518
impl From<libloading::Error> for DevrcPluginError {

xtests/outputs/test_help_test_1_1_stdout.ansitxt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
devrc 0.5.2
1+
devrc 0.5.3
22
⚡ task automation tool on steroids ⚡
33

44
USAGE:

0 commit comments

Comments
 (0)