Best error handler

2 years ago by HiddenLayer555 to c/programmerhumor

catch {
    exec('rm -rf /*')
}
Telorand 5 points 2 years ago

Unable to execute command 'rm'. Permission denied.

path: 0 16248790, hotness: undefined, score: 5, children: 0
programmerhumor
programmerhumor

@lemmy.world

login for more options
1896
74
825

go to feed...