Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit d971fdf

Browse files
author
Andrew Menagarishvili
committed
Added rethrowing error if not related to non-root
1 parent fec4531 commit d971fdf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Microsoft.PowerShell.IoT/Microsoft.PowerShell.IoT.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ protected override void ProcessRecord()
128128
{
129129
throw new PlatformNotSupportedException(Resources.ErrNeedRootPrivileges, e);
130130
}
131+
throw;
131132
}
132133
}
133134
}
@@ -192,6 +193,7 @@ protected override void ProcessRecord()
192193
{
193194
throw new PlatformNotSupportedException(Resources.ErrNeedRootPrivileges, e);
194195
}
196+
throw;
195197
}
196198
}
197199
}
@@ -228,6 +230,7 @@ protected override void ProcessRecord()
228230
{
229231
throw new PlatformNotSupportedException(Resources.ErrNeedRootPrivileges, e);
230232
}
233+
throw;
231234
}
232235
}
233236
}
@@ -269,6 +272,7 @@ protected override void ProcessRecord()
269272
{
270273
throw new PlatformNotSupportedException(Resources.ErrNeedRootPrivileges, e);
271274
}
275+
throw;
272276
}
273277
}
274278
}
@@ -339,6 +343,7 @@ protected override void ProcessRecord()
339343
{
340344
throw new PlatformNotSupportedException(Resources.ErrNeedRootPrivileges, e);
341345
}
346+
throw;
342347
}
343348
}
344349
}
@@ -396,6 +401,7 @@ protected override void ProcessRecord()
396401
{
397402
throw new PlatformNotSupportedException(Resources.ErrNeedRootPrivileges, e);
398403
}
404+
throw;
399405
}
400406
}
401407
}

0 commit comments

Comments
 (0)