Skip to content

Commit

Permalink
try...catch
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Aug 31, 2020
1 parent 300cb5d commit 57903ed
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion public/app-dark.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/app.css

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions public/app.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/app.js": "/app.js?id=4f93645700a6c5485654",
"/app.css": "/app.css?id=99048465add47d086ac7",
"/app-dark.css": "/app-dark.css?id=f42b555818ed19478827"
"/app.js": "/app.js?id=8e1027a39ac212868744",
"/app.css": "/app.css?id=81fbc8fec874ad3203d7",
"/app-dark.css": "/app-dark.css?id=3d68663a6ab8e86cb5dc"
}
8 changes: 6 additions & 2 deletions resources/js/screens/recentJobs/job.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@
* Pretty print serialized job.
*/
prettyPrintJob(data) {
return data.command && !data.command.includes('CallQueuedClosure')
? phpunserialize(data.command) : data;
try {
return data.command && !data.command.includes('CallQueuedClosure')
? phpunserialize(data.command) : data;
} catch (err) {
return data;
}
}
}
}
Expand Down

0 comments on commit 57903ed

Please sign in to comment.