mirror of
https://github.com/Thumbscrew/PSMatrix.git
synced 2025-04-12 02:03:39 +00:00
add return
if error is caught on sync
This commit is contained in:
parent
8d34f8de53
commit
0fe7967b23
@ -54,6 +54,7 @@ function Get-MatrixRoomMessages {
|
|||||||
$res = Invoke-RestMethod -Uri $url -Headers $headers
|
$res = Invoke-RestMethod -Uri $url -Headers $headers
|
||||||
} catch {
|
} catch {
|
||||||
Write-Error $_
|
Write-Error $_
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
$events = $res.rooms.join.($RoomId).timeline.events
|
$events = $res.rooms.join.($RoomId).timeline.events
|
||||||
|
Loading…
Reference in New Issue
Block a user