mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-25 21:25:21 +02:00
Created The returnServerError function (markdown)
parent
20f5b16d06
commit
28e631108a
1 changed files with 7 additions and 0 deletions
7
The-returnServerError-function.md
Normal file
7
The-returnServerError-function.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
The `returnServerError` function aborts execution of the current bridge and returns the given error message with error code **500**:
|
||||
|
||||
```PHP
|
||||
returnServerError('Your error message')
|
||||
```
|
||||
|
||||
Use this function when a problem occurs that has nothing to do with the parameters provided by the user. (like: Host service gone missing, empty data received, etc...)
|
Loading…
Add table
Add a link
Reference in a new issue