Catch ENOENT for db_destroy for sqlite3 so no backtrace is printed. I decided
to give a little error message for trying to destroy a nonexistent db still. git-svn-id: file:///home/svn/framework3/trunk@6468 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
b5a8c86241
commit
1253e7a044
|
@ -780,7 +780,11 @@ class Db
|
|||
def db_destroy_sqlite3(*args)
|
||||
cmd_db_disconnect()
|
||||
info = db_parse_db_uri_sqlite3(args[0])
|
||||
begin
|
||||
File.unlink(info[:path])
|
||||
rescue Errno::ENOENT
|
||||
print_error("The specified database does not exist")
|
||||
end
|
||||
end
|
||||
|
||||
def db_parse_db_uri_sqlite3(path)
|
||||
|
|
Loading…
Reference in New Issue