Fixing bad change earlier
svn: r16299
This commit is contained in:
parent
4773d2cefd
commit
2510c30556
|
@ -1,4 +1,4 @@
|
||||||
#lang scribble/doc
|
6#lang scribble/doc
|
||||||
@(require scribble/manual
|
@(require scribble/manual
|
||||||
(for-label scheme)
|
(for-label scheme)
|
||||||
(for-label web-server/servlet)
|
(for-label web-server/servlet)
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
(define (initialize-blog! home)
|
(define (initialize-blog! home)
|
||||||
(define db (sqlite:open home))
|
(define db (sqlite:open home))
|
||||||
(define the-blog (make-blog db))
|
(define the-blog (make-blog db))
|
||||||
(with-handlers ([exn:fail? void])
|
(with-handlers ([exn void])
|
||||||
(sqlite:exec/ignore db
|
(sqlite:exec/ignore db
|
||||||
(string-append
|
(string-append
|
||||||
"CREATE TABLE posts "
|
"CREATE TABLE posts "
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
"This is another post"
|
"This is another post"
|
||||||
(list)))))
|
(list)))))
|
||||||
(define the-blog
|
(define the-blog
|
||||||
(with-handlers ([exn:fail? log-missing-exn-handler])
|
(with-handlers ([exn log-missing-exn-handler])
|
||||||
(with-input-from-file home read)))]
|
(with-input-from-file home read)))]
|
||||||
(set-blog-home! the-blog (path->string home))
|
(set-blog-home! the-blog (path->string home))
|
||||||
the-blog))
|
the-blog))
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
(define (initialize-blog! home)
|
(define (initialize-blog! home)
|
||||||
(define db (sqlite:open home))
|
(define db (sqlite:open home))
|
||||||
(define the-blog (make-blog db))
|
(define the-blog (make-blog db))
|
||||||
(with-handlers ([exn:fail? void])
|
(with-handlers ([exn void])
|
||||||
(sqlite:exec/ignore db
|
(sqlite:exec/ignore db
|
||||||
(string-append
|
(string-append
|
||||||
"CREATE TABLE posts "
|
"CREATE TABLE posts "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user