Django

Code

Ticket #6719 (closed: fixed)

Opened 9 months ago

Last modified 3 months ago

syncdb: Better error message if installing custom sql failed

Reported by: guettli Assigned to: nobody
Milestone: Component: Core framework
Version: SVN Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 1
Needs tests: 0 Patch needs improvement: 0

Description

This is a small patch to improve the output if installing custom sql failed. If verbosity>=2 the traceback gets display. Maybe this should even be if verbosity>=1.

If verbosity>=2 a message 'No custom sql for ...' get displayed.

A newline at the end of "Failed to install custom SQL for %s.%s model: %s" was missing, too.

Attachments

syncdb_better_error_messages.diff (1.5 kB) - added by guettli on 03/12/08 10:48:47.
Uses option '--traceback' now.

Change History

03/05/08 02:36:43 changed by guettli

  • cc set to hv@tbz-pariv.de.
  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

03/11/08 15:25:06 changed by jacob

  • needs_better_patch set to 1.
  • stage changed from Unreviewed to Design decision needed.

A better approach would be to make this work with the --traceback added some time back. That would be consistent with other things which suppress tracebacks (like fixture loading).

03/12/08 10:48:47 changed by guettli

  • attachment syncdb_better_error_messages.diff added.

Uses option '--traceback' now.

06/18/08 23:32:03 changed by russellm

  • needs_better_patch deleted.
  • stage changed from Design decision needed to Ready for checkin.
  • needs_docs set to 1.

Needs documentation of the new option, but that isn't much effort, so I'm promoting to ready for checkin.

06/19/08 08:24:39 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

(In [7704]) Fixed #6719 -- Added a --traceback option to syncdb to provide a stack trace when custom SQL loading fails. Also added documentation for the --traceback option. Thanks to guettli for the patch.

09/04/08 10:02:28 changed by guettli

  • cc deleted.

Add/Change #6719 (syncdb: Better error message if installing custom sql failed)




Change Properties
Action