Commit 0eb021df authored by Leigh B Stoller's avatar Leigh B Stoller

Watch (more carefully) for a disk URL that refers to nonsense.

parent b123676b
#!/usr/bin/perl -wT
#
# Copyright (c) 2008-2017 University of Utah and the Flux Group.
# Copyright (c) 2008-2018 University of Utah and the Flux Group.
#
# {{{GENIPUBLIC-LICENSE
#
......@@ -292,7 +292,8 @@ sub MapToLocalImage($$)
my $url = $blob->{'metadata_url'};
if (!defined($url)) {
print STDERR "No metadata url in info returned from image server.\n";
return undef;
return GeniResponse->Create(GENIRESPONSE_SEARCHFAILED, undef,
"No url for $urn at the image server");
}
#print STDERR Dumper($blob);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment