Improve error output when a signature is missing data.

Review Request #9533 — Created Jan. 25, 2018 and submitted

Information

Django Evolution
master
7f51e0a...

Reviewers

From time to time, often due to hand-manipulation of data or unfortunate
crashes, a stored database signature may not contain some data expected
by evolution files, resulting in KeyErrors when attempting to apply the
evolution. It's not always clear what part of the database or evolution
process these KeyErrors apply to, making these situations painful for
debugging.

This change adds better error checking around any signature lookups,
raising errors with enough information to identify the change being
applied. It also improves existing error messages, creating consistent
wording for most mutation-related errors.

Unit tests pass.

Description From Last Updated

F821 undefined name 'applabel'

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

chipx86
david
  1. Ship It!

  2. 
      
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (4914134)