File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Rubberduck.VBEEditor/SafeComWrappers/VBA Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -495,13 +495,17 @@ public override IEnumerable<IFileStatusEntry> Status()
495
495
try
496
496
{
497
497
base . Status ( ) ;
498
- return _repo . RetrieveStatus ( new StatusOptions { IncludeUnaltered = true , DetectRenamesInWorkDir = true } )
499
- . Select ( item => new FileStatusEntry ( item ) ) ;
498
+ return _repo . RetrieveStatus ( new StatusOptions { IncludeUnaltered = true , DetectRenamesInWorkDir = true } )
499
+ . Select ( item => new FileStatusEntry ( item ) ) ;
500
500
}
501
501
catch ( LibGit2SharpException ex )
502
502
{
503
503
throw new SourceControlException ( SourceControlText . GitRepoStatusFailed , ex ) ;
504
504
}
505
+ catch ( SEHException ex )
506
+ {
507
+ throw new SourceControlException ( SourceControlText . GitRepoStatusFailed , ex ) ;
508
+ }
505
509
}
506
510
507
511
public override IEnumerable < IFileStatusEntry > LastKnownStatus ( )
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ public void ImportSourceFile(string path)
118
118
var component = this [ name ] ;
119
119
if ( component . IsWrappingNullReference )
120
120
{
121
- throw new InvalidOperationException ( string . Format ( "Could not find document component named '{0}'." , name ) ) ;
121
+ throw new IndexOutOfRangeException ( string . Format ( "Could not find document component named '{0}'." , name ) ) ;
122
122
}
123
123
component . CodeModule . Clear ( ) ;
124
124
component . CodeModule . AddFromString ( codeString ) ;
You can’t perform that action at this time.
0 commit comments