mixu / electroshot

Capture website screenshots with optional device and network emulation as jpg, png or pdf (with web fonts!) using Electron / Chrome.
548 stars 34 forks source link

Exit with the same code as Electron. #12

Closed handcraftedbits closed 7 years ago

handcraftedbits commented 7 years ago

If Electron fails (e.g., exits with code 1), electroshot will still exit with code 0. This makes it more difficult to determine if electroshot failed (I have to grep for "Electron exited with..."). This is a simple fix to have electroshot exit with the same code that Electron does.

mixu commented 7 years ago

Awesome, thanks!