File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ pub enum OrandaError {
4444 #[ diagnostic( help( "Please make sure you give a valid path pointing to a css file." ) ) ]
4545 InvalidOrandaCSSOverride { path : String } ,
4646
47+ #[ error( "Failed to read cached context." ) ]
48+ CachedContextReadError {
49+ #[ source]
50+ details : Box < OrandaError > ,
51+ } ,
52+
4753 #[ error( "Failed fetching releases from Github." ) ]
4854 GithubReleasesFetchError {
4955 #[ source]
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ impl Site {
5252 Message :: new ( MessageType :: Warning , "Using cached context..." ) . print ( ) ;
5353 cached
5454 }
55- Err ( e) => Err ( OrandaError :: Other ( "Failed to read cached context" . to_string ( ) ) ) ?
55+ Err ( e) => Err ( OrandaError :: CachedContextReadError { details : Box :: new ( e ) } ) ?
5656 }
5757 } else {
5858 Context :: new ( repo_url, config. artifacts . cargo_dist ( ) ) ?
You can’t perform that action at this time.
0 commit comments