Files
Nim/tests/async
握猫猫 47f1ab7b97 Fix OSError errorCode field is not assigned a value (#22954)
In this PR, the following changes were made:
1. Replaced `raise newException(OSError, osErrorMsg(errno))` in batches
with `raiseOSError(errcode)`.
2. Replaced `newException(OSError, osErrorMsg(errno))` in batches with
`newOSError(errcode)`.

There are still some places that have not been replaced. After checking,
they are not system errors in the traditional sense.

```nim
proc dlclose(lib: LibHandle) =
  raise newException(OSError, "dlclose not implemented on Nintendo Switch!")
```

```nim
if not fileExists(result) and not dirExists(result):
  # consider using: `raiseOSError(osLastError(), result)`
  raise newException(OSError, "file '" & result & "' does not exist")
```

```nim
proc paramStr*(i: int): string =
  raise newException(OSError, "paramStr is not implemented on Genode")
```

(cherry picked from commit 39fbd30513)
2024-04-18 10:30:46 +02:00
..
2021-09-19 23:35:50 +02:00
2018-12-11 21:23:22 +01:00
2020-12-28 14:13:21 +01:00
2020-08-08 07:24:54 +02:00
2020-11-02 14:17:09 +01:00
2017-05-16 22:09:19 +02:00
2020-03-30 13:18:12 +02:00
2016-09-07 12:19:06 +03:00
2018-12-11 21:23:22 +01:00
2018-12-11 21:23:21 +01:00
2018-12-11 21:23:22 +01:00
2020-06-09 20:39:26 +02:00
2018-11-07 15:22:02 +01:00
2020-03-30 13:18:12 +02:00
2016-10-20 15:20:27 +02:00
2020-03-30 13:18:12 +02:00
2018-04-30 02:52:58 +02:00
2014-09-09 01:17:07 +01:00
2016-01-11 11:11:44 +01:00
2020-03-30 13:18:12 +02:00
2016-09-17 13:22:04 +02:00
2016-07-08 10:34:12 +02:00