diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-08-18 11:21:27 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-08-26 15:00:44 +0200 |
commit | f9978ed16476ca6d233a89669c62c798cdf9db9d (patch) | |
tree | 02edb31008b997a3e77055060a34971fe9e8c5a4 /common | |
parent | 58d4c0a8be8beefbd7437b17bf7a9a381164d09b (diff) |
Image resource refactor
This commit pulls most of the image related logic into its own package, to make it easier to reason about and extend.
This is also a rewrite of the transformation logic used in Hugo Pipes, mostly to allow constructs like the one below:
{{ ($myimg | fingerprint ).Width }}
Fixes #5903
Fixes #6234
Fixes #6266
Diffstat (limited to 'common')
-rw-r--r-- | common/herrors/errors.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/herrors/errors.go b/common/herrors/errors.go index e484ecb80..ff8eab116 100644 --- a/common/herrors/errors.go +++ b/common/herrors/errors.go @@ -52,6 +52,7 @@ func FprintStackTrace(w io.Writer, err error) { // defer herrors.Recover() func Recover(args ...interface{}) { if r := recover(); r != nil { + fmt.Println("ERR:", r) args = append(args, "stacktrace from panic: \n"+string(debug.Stack()), "\n") fmt.Println(args...) } |