UNPKG
armpit
Version:
latest (2.0.0)
2.0.0
1.0.0
0.2.0
0.1.0
0.0.1
Another resource manager programming interface toolkit.
armpit
/
dist
/
azSdkUtils.js
13 lines
•
330 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{ isRestError }
from
"@azure/core-rest-pipeline"
;
export
async
function
handleGet
(
promise
) {
try
{
return
await
promise; }
catch
(error) {
if
(
isRestError
(error) && error.
statusCode
===
404
) {
return
null
; }
throw
error; } }
//# sourceMappingURL=azSdkUtils.js.map