X-Git-Url: https://code.consxy.com/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fbase.lisp;h=871da36596bc4939a5cf924cb1c5df7b839defba;hb=10415e960ac74f2c07f693295b063c586ccc608f;hp=cdceda1c34fb48ea10f5993d1874080c329fe39e;hpb=4c3ed54ab94a2b91fa15302781864593d0e5c38c;p=candle diff --git a/src/main/base.lisp b/src/main/base.lisp index cdceda1..871da36 100644 --- a/src/main/base.lisp +++ b/src/main/base.lisp @@ -2,6 +2,9 @@ (defvar *candle-dir*) +(define-condition candle-error (error) ((reason :initarg :reason :reader candle-error-reason))) +(defun raise-candle-error (reason) (error (make-instance 'candle-error :reason reason))) + (lame-db:defdbstruct project name src) ; Status here is: @@ -10,7 +13,7 @@ ; - :succeeded - job succeeded ; - :no-candle-file - no candle file was found ; - :in-progress - job is running -(lame-db:defdbstruct job status sha create-date (project :join project)) +(lame-db:defdbstruct job status sha create-date log (project :join project)) ; in-git here refers to whether the branch exists in git. As branches get deleted, ; this will get set to nil but we keep them around for historical reference